diff --git a/GAME/include/test_personnage.h b/GAME/include/test_personnage.h deleted file mode 100644 index 66c50a488d6dad3db539aa82d4c7fe9d60f5d734..0000000000000000000000000000000000000000 --- a/GAME/include/test_personnage.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -// Created by Tiny on 3/14/2021. -*/ - -#ifndef INSAGAME_TEST_PERSONNAGE_H -#define INSAGAME_TEST_PERSONNAGE_H - -#include <gtest/gtest.h> -extern "C"{ -#include "personnage.h" -} - -TEST(test_init_personnage,values_3_3_3_3_3_testimage){ - Personnage person; - init_pers(&person,3,3,3,3,3,"testimage"); - EXPECT_EQ(3,person.x_pers); - EXPECT_EQ(3,person.y_pers); - EXPECT_EQ(3,person.long_pers); - EXPECT_EQ(3,person.larg_pers); - EXPECT_STREQ("testimage",person.image_pers); -} -TEST(test_calcul_point,values_3_3){ - Personnage person; - init_pers(&person,3,3,3,3,3,"testimage"); - calcul_points_pers(&person); - EXPECT_EQ(6,person.x_hr); - EXPECT_EQ(3,person.y_hr); - EXPECT_EQ(3,person.x_ll); - EXPECT_EQ(6,person.y_ll); - EXPECT_EQ(6,person.x_lr); - EXPECT_EQ(6,person.y_lr); - -} -#endif /*INSAGAME_TEST_PERSONNAGE_H*/