|
@ -13,7 +13,7 @@ void setUp(void) |
|
|
testCharacter.dexterity = 0; |
|
|
testCharacter.dexterity = 0; |
|
|
testCharacter2.dexterity = 5; |
|
|
testCharacter2.dexterity = 5; |
|
|
testCharacter.intelligence = 0; |
|
|
testCharacter.intelligence = 0; |
|
|
testCharacter2.intelligence = 5; |
|
|
|
|
|
|
|
|
testCharacter2.intelligence = 7; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void tearDown(void) |
|
|
void tearDown(void) |
|
@ -56,4 +56,8 @@ void test_setCharacterIntelligence(void) { |
|
|
TEST_ASSERT_EQUAL_INT(45,testCharacter.intelligence); |
|
|
TEST_ASSERT_EQUAL_INT(45,testCharacter.intelligence); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_getCharacterIntelligence(void) { |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(7,testCharacter2.intelligence); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |