@ -23,4 +23,8 @@ int getCharacterStrength (Character *character) {
void setCharacterDexterity (Character *character, int newDexterity) {
character->dexterity = newDexterity;
}
int getCharacterDexterity (Character *character) {
return character->dexterity;
@ -16,4 +16,6 @@ int getCharacterStrength(Character *character);
void setCharacterDexterity (Character *character, int newDexterity);
int getCharacterDexterity(Character *character);
#endif
@ -44,4 +44,9 @@ void test_setCharacterDexterity(void) {
TEST_ASSERT_EQUAL_INT(50,testCharacter.dexterity);
void test_getCharacterDexterity(void) {
TEST_ASSERT_EQUAL_INT(5,testCharacter2.dexterity);
#endif // TEST