File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -128,13 +128,14 @@ FOSSIL_TEST_CASE(cpp_test_jellyfishai_save_and_load) {
128128 ai.learn (" cat" , " meow" );
129129 ai.learn (" dog" , " bark" );
130130
131- const std::string filepath = " jellyfish_chain_test_save.dat" ;
131+ const std::string filepath = " jellyfish_chain_test_save.fish" ;
132+
132133 int save_result = ai.save (filepath);
133- ASSUME_ITS_EQUAL_I32 (save_result, 0 );
134+ ASSUME_ITS_EQUAL_I32 (save_result, 1 ); // Expect 1 on success now
134135
135136 JellyfishAI ai2;
136137 int load_result = ai2.load (filepath);
137- ASSUME_ITS_EQUAL_I32 (load_result, 0 );
138+ ASSUME_ITS_EQUAL_I32 (load_result, 1 ); // Expect 1 on success now
138139
139140 // Check that loaded data matches
140141 std::string out1 = ai2.reason (" cat" );
You can’t perform that action at this time.
0 commit comments