tty-solitaire/test
Murilo Pereira 777434177f Added tests for the stack and made them pass.
* Make 'empty(stack)' more robust
* Only try to 'push(stack, card)' if card != NULL
* Added message explaining why 'pop(stack)' needs to create a new
  stack object when popping a stack's last element
* 'move_card(stack, stack)' now checks if the origin pops something
   before trying to 'push(stack)' to destination. This prevents
   dereferencing a possible NULL pointer.
2011-02-13 23:13:16 -02:00
..
card_test.c No need for stdbool.h. 2011-02-13 19:37:50 -02:00
cursor_test.c Add initial unit tests. 2011-02-06 23:33:44 -02:00
deck_test.c Add initial unit tests. 2011-02-06 23:33:44 -02:00
display_test.c Add initial unit tests. 2011-02-06 23:33:44 -02:00
frame_test.c No need for stdbool.h. 2011-02-13 19:37:50 -02:00
game_test.c Add initial unit tests. 2011-02-06 23:33:44 -02:00
keyboard_test.c Add initial unit tests. 2011-02-06 23:33:44 -02:00
stack_test.c Added tests for the stack and made them pass. 2011-02-13 23:13:16 -02:00
test_helper_test.c Formatting. 2011-02-13 19:40:29 -02:00
test_helper.c Added helper functions for the unit tests. 2011-02-13 19:35:40 -02:00
test_helper.h Added helper functions for the unit tests. 2011-02-13 19:35:40 -02:00
ttysolitaire_test.c Added helper functions for the unit tests. 2011-02-13 19:35:40 -02:00
ttysolitaire_test.h Added helper functions for the unit tests. 2011-02-13 19:35:40 -02:00
util_test.c Add initial unit tests. 2011-02-06 23:33:44 -02:00