@ -17,3 +17,7 @@ void setCharacterStrength(Character *character, int newStrength)
{
character->strength = newStrength;
}
int getCharacterStrength(Character *character) {
return character->strength;
@ -12,6 +12,6 @@ int getCharacterHealthPoints (Character *character);
void setCharacterStrength (Character *character, int newStrength);
int getCharacterStrength(Character *character)
#endif
@ -33,6 +33,8 @@ void test_setCharacterStrenght(void)
TEST_ASSERT_EQUAL_INT(50,testCharacter.strength);
void test_getCharacterStrength(void) {
TEST_ASSERT_EQUAL_INT(5,testCharacter2.strength);
#endif // TEST