Commit Graph

78 Commits

Author SHA1 Message Date
jlamothe bea9a3e34a check the next field of the last log when appending 2023-11-21 18:11:35 +00:00
jlamothe 57e4d2ba49 re-implemented test using new convenience functions 2023-11-21 05:12:41 +00:00
jlamothe 01e9cb8794 implemented log_test_context() 2023-11-20 05:03:33 +00:00
jlamothe 8828a8ab17 WIP: re-writing tests 2023-11-20 04:50:42 +00:00
jlamothe 24ed9060ba implemented single_test_context_compare() 2023-11-20 03:58:21 +00:00
jlamothe eaa8ae06a7 renamed check_values() to test_context_compare() and reimplemented 2023-11-20 01:16:44 +00:00
jlamothe f808eb4cb0 reorganized functions and such 2023-11-19 23:48:11 +00:00
jlamothe 55926ec0d8 implemented run_test_compare() 2023-11-19 17:19:45 -05:00
jlamothe 01e01243dd cleaned up comments 2023-11-19 17:19:45 -05:00
jlamothe 291d25927c refactored single_test_context_with() 2023-11-19 20:44:14 +00:00
jlamothe ad4abe68e0 refactored test_context_with() 2023-11-19 04:40:19 +00:00
jlamothe 1c4fb1e87d refactored single_test_context() 2023-11-19 04:01:10 +00:00
jlamothe 8138f59fef refactored run_test_with() 2023-11-19 01:48:14 +00:00
jlamothe cd590339b7 refactored single_test_context() 2023-11-18 20:11:28 +00:00
jlamothe 2011b75b7e refactored run_test_with() 2023-11-18 19:28:40 +00:00
jlamothe bd535791d7 implemented single_test_context_with() 2023-11-18 16:38:00 +00:00
jlamothe 6c191d8405 implemented run_test_with() 2023-11-17 23:35:02 +00:00
jlamothe 37ce34b160 made check_value() use test_context_with()
eliminates some redundant code
2023-11-17 23:07:05 +00:00
jlamothe 5d67b7aeb8 implemented test_context_with() 2023-11-17 21:30:52 +00:00
jlamothe 7818e3d646 changed order of params for check_value() 2023-11-16 22:41:42 +00:00
jlamothe a7351b5667 implemented check_value() 2023-11-16 19:53:06 +00:00
jlamothe 0ad79ea3b0 define and start using single_text_context() 2023-11-16 00:52:01 +00:00
jlamothe ef00063ba3 built and started to test test_context() 2023-11-15 23:46:25 +00:00
jlamothe b9cac45eba report function should ignore formatting 2023-11-15 00:04:35 +00:00
jlamothe cead3f67d0 created overridable report() function to be used in place of print() 2023-11-14 23:53:43 +00:00
jlamothe 85a6d49b38 added context info to TestState 2023-11-14 23:08:19 +00:00
jlamothe 1d306f32c0 actually count the null state test for run_test() 2023-11-14 20:32:07 +00:00
jlamothe bcfd584608 make sure passing a null state to append_test_log() doesn't crash it 2023-11-14 20:16:30 +00:00
jlamothe 2a092d1050 ensure the log doesn't change when the message is null 2023-11-14 19:59:13 +00:00
jlamothe a772db08ce try to rebuild log when first entry missing 2023-11-14 19:33:02 +00:00
jlamothe 47638ef0b7 ensure last_log repairs itself when appending 2023-11-14 19:16:21 +00:00
jlamothe 580af62244 fix memory leak 2023-11-14 18:43:06 +00:00
jlamothe 3d01638da0 break a2e_chk_last into separate function 2023-11-13 04:05:33 +00:00
jlamothe 4ff1aa2d6d build a struct to represent a sample log 2023-11-13 03:47:21 +00:00
jlamothe 5e8b1b73c7 make sure last_log changes, but isn't null on append 2023-11-13 01:27:07 +00:00
jlamothe fc167d8d05 ensure first_log doesn't change on append 2023-11-13 00:49:33 +00:00
jlamothe 586bbe71ed started append to existing test 2023-11-13 00:37:19 +00:00
jlamothe e41263adf0 consider calling run_test() with a null function as a pending test 2023-11-12 01:25:55 +00:00
jlamothe 94d6bc8cf9 make sure run_test() doesn't crash when handed a null state 2023-11-11 23:08:08 +00:00
jlamothe 3393c3b9af ensure latest log text is correct when appended 2023-11-11 22:53:04 +00:00
jlamothe 63f0bd73e4 ensure first_log and last_log match when appending to empty log 2023-11-11 21:49:52 +00:00
jlamothe 9f4a51d8c7 ensure first_log isn't null after append 2023-11-11 21:36:05 +00:00
jlamothe c0f28d41b0 renamed various checking functions 2023-11-11 03:40:00 +00:00
jlamothe 3309ac7aee made compare_ints() and compare_ptrs() accessible from outside util 2023-11-10 22:44:42 +00:00
jlamothe a14b11e853 append to an empty test log 2023-11-10 21:17:06 +00:00
jlamothe 4c0d33693b moved mk_sample_state() into util 2023-11-10 20:48:40 +00:00
jlamothe a962eff7b4 test module for append_test_log() 2023-11-10 20:30:44 +00:00
jlamothe c3bace917d fixed wihtespace issue 2023-11-10 20:05:37 +00:00
Jonathan Lamothe f30c093a81 fix nuke option in mkfile 2023-11-10 09:15:02 -05:00
jlamothe 1fcbeaef5b check what happens when a test is pending 2023-11-09 23:51:51 +00:00