OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-matrix commits / 7da2548

Unit test was failing because data wasn't loaded.
Sheesh.
7da2548c1527347cecef77878d2c8816493a4ee4
by Linas Vepstas <linasvepstas@gmail.com> · 2025-10-10T15:24:17.000Z

Changed files (1) +10 -2

tests/matrix/VectorAPIUTest.cxxtest +10 -2
……@@ -517,8 +517,12 @@ void VectorAPIUTest::test_dynamic(void)
517517#ifdef HAVE_ROCKS_STORAGE
518518 logger().debug("BEGIN TEST: %s", __FUNCTION__);
519519
520 // Where the data comes from.
521 std::string rc = eval->eval("(use-modules (opencog persist-rocks))");
520 // Load the test data first
521 std::string rc = eval->eval("(load-from-path \"tests/matrix/basic-data.scm\")");
522 CHKERR;
523
524 // Where the data will be stored
525 rc = eval->eval("(use-modules (opencog persist-rocks))");
522526 CHKERR;
523527
524528 rc = eval->eval("(define rsn (RocksStorageNode \"rocks:///tmp/vector-api-utest-dynamic/\"))");
……@@ -527,6 +531,10 @@ void VectorAPIUTest::test_dynamic(void)
527531 rc = eval->eval("(cog-open rsn)");
528532 CHKERR;
529533
534 // Store the atomspace to RocksStorage
535 rc = eval->eval("(store-atomspace rsn)");
536 CHKERR;
537
530538 std::string num = eval->eval("(dosi 'right-product (Word \"table\") (Word \"dog\"))");
531539 double ptado = 4.0*4.0;
532540 CHKFLT("dynamic product (table,dog)", num, ptado);