OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-storage commits / a9b158b

Fix off-by-one due to new flag atom
a9b158b6a5e65e04c9263776ff2b39f81c0ea0e6
by Linas Vepstas <linasvepstas@gmail.com> · 2025-12-08T23:49:07.000Z

Changed files (1) +4 -4

tests/persist/sexpr/CommandsUTest.cxxtest +4 -4
……@@ -191,7 +191,7 @@ void CommandsUTest::test_set_value()
191191 std::string out = com.interpret_command(in);
192192 printf("Got %s\n", out.c_str());
193193
194 TS_ASSERT_EQUALS(2, as->get_size());
194 TS_ASSERT_EQUALS(3, as->get_size());
195195 TS_ASSERT(0 == out.compare(""));
196196
197197 Handle h = as->get_node(CONCEPT_NODE, "a");
……@@ -223,7 +223,7 @@ void CommandsUTest::test_set_value_quoted()
223223 std::string out = com.interpret_command(in);
224224 printf("Got %s\n", out.c_str());
225225
226 TS_ASSERT_EQUALS(2, as->get_size());
226 TS_ASSERT_EQUALS(3, as->get_size());
227227 TS_ASSERT(0 == out.compare(""));
228228
229229 Handle h = as->get_node(CONCEPT_NODE, "a");
……@@ -264,7 +264,7 @@ void CommandsUTest::test_set_several_quoted()
264264 std::string out = com.interpret_command(in);
265265 printf("Got %s\n", out.c_str());
266266 printf("AtomSpace contents: %s\n", as->to_string().c_str());
267 TS_ASSERT_EQUALS(5, as->get_size());
267 TS_ASSERT_EQUALS(6, as->get_size());
268268 TS_ASSERT(0 == out.compare(""));
269269
270270 Handle hx = as->get_node(CONCEPT_NODE, "x \"float\" node");
……@@ -366,7 +366,7 @@ void CommandsUTest::test_set_values()
366366 printf("Got %s\n", out.c_str());
367367
368368 TS_ASSERT(0 == out.compare(""));
369 TS_ASSERT_EQUALS(3, as->get_size());
369 TS_ASSERT_EQUALS(4, as->get_size());
370370
371371 Handle h = as->get_node(CONCEPT_NODE, "a");
372372 TS_ASSERT(nullptr != h);