Formatting changes.

This commit is contained in:
Ólafur Waage 2021-09-10 13:57:01 +02:00
parent f60e449d8e
commit 030c82d1bc
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#include "GameState.hpp"
#include <gtest/gtest.h>
#include <fmt/format.h>
#include <gtest/gtest.h>
TEST(GameStateTest, Fuzz) {
pacman::GameState gameState;

View File

@ -5,7 +5,7 @@
#include <gtest/gtest.h>
template<typename T>
static void ghostInitHelper(const T& ghost, double x, double y) {
static void ghostInitHelper(const T & ghost, double x, double y) {
const pacman::Position pos{ x, y };
EXPECT_EQ(ghost.position(), pos);
@ -25,13 +25,13 @@ TEST(GhostTest, Init) {
pacman::Inky inky;
ghostInitHelper(inky, 13.5, 14);
pacman::Pinky pinky;
ghostInitHelper(pinky, 11.5, 14);
}
template<typename T>
static void ghostFrightenHelper(T& ghost) {
static void ghostFrightenHelper(T & ghost) {
EXPECT_FALSE(ghost.isFrightened());
ghost.frighten();
EXPECT_TRUE(ghost.isFrightened());