Open lindsey-hsi opened 5 years ago
Tests are approximately halfway written. Tests have been written for the following functions:
The following functions still need tests:
Questions:
The tests for effect_new(), do_effect(), and do_all_effects have been written, and the test_game_actions.c file has been refactored (see #362). At this point, tests need to be written for: 1) delete_action_condition_llist() 2) delete_action_effect_llist() 2) check_condition()
Regarding the list above, the following functions need to be WRITTEN: 1) get_all_actions() 2) game_action_free()
The tests for effect_new(), do_effect(), and do_all_effects have been written, and the test_game_actions.c file has been refactored (see #362). At this point, tests need to be written for:
- delete_action_condition_llist()
- delete_action_effect_llist()
- check_condition()
Regarding the list above, the following functions need to be WRITTEN:
- get_all_actions()
- game_action_free()
I believe that game_action_free() is already written in item.c. We can refactor it to game_action.c if you think that is better.
I moved this issue to the backlog because it needs significantly more work to be closed. To whoever picks this up, this issue was opened in order to test functions that were written in Sprint 4 to ensure that our functions did not break any one else's demo. In terms of coverage, we have completed around 60% of the testing that is needed by the conditions and effects modules.
The Following Functions still need tests: delete_action_condition_llist() delete_action_effect_llist() check_condition()
The Following Function needs to be written: get_all_actions()
The Following Function needs to be edited and refactored from the item module: game_action_free()
Happy hacking!
Write tests for conditions and effects to ensure correct functionality and to fix any bugs that arise along the way.