Formatting changes.
This commit is contained in:
parent
f60e449d8e
commit
030c82d1bc
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
#include "GameState.hpp"
|
#include "GameState.hpp"
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
TEST(GameStateTest, Fuzz) {
|
TEST(GameStateTest, Fuzz) {
|
||||||
pacman::GameState gameState;
|
pacman::GameState gameState;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
template<typename T>
|
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 };
|
const pacman::Position pos{ x, y };
|
||||||
EXPECT_EQ(ghost.position(), pos);
|
EXPECT_EQ(ghost.position(), pos);
|
||||||
|
|
||||||
|
@ -25,13 +25,13 @@ TEST(GhostTest, Init) {
|
||||||
|
|
||||||
pacman::Inky inky;
|
pacman::Inky inky;
|
||||||
ghostInitHelper(inky, 13.5, 14);
|
ghostInitHelper(inky, 13.5, 14);
|
||||||
|
|
||||||
pacman::Pinky pinky;
|
pacman::Pinky pinky;
|
||||||
ghostInitHelper(pinky, 11.5, 14);
|
ghostInitHelper(pinky, 11.5, 14);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static void ghostFrightenHelper(T& ghost) {
|
static void ghostFrightenHelper(T & ghost) {
|
||||||
EXPECT_FALSE(ghost.isFrightened());
|
EXPECT_FALSE(ghost.isFrightened());
|
||||||
ghost.frighten();
|
ghost.frighten();
|
||||||
EXPECT_TRUE(ghost.isFrightened());
|
EXPECT_TRUE(ghost.isFrightened());
|
||||||
|
|
Loading…
Reference in a new issue