Skip to content

Commit 2fa166e

Browse files
Update test_jellyfish.cpp
1 parent e53ae0a commit 2fa166e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

code/tests/cases/test_jellyfish.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)