OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-matrix commits / 2d6dbcf

Tweak unit tet to use new API
2d6dbcfaefadfe003fcdbaa3a414fd6426f0fc30
by Linas Vepstas <linasvepstas@gmail.com> · 2025-12-05T19:09:33.000Z

Changed files (1) +2 -2

tests/matrix/basic-api.scm +2 -2
……@@ -36,7 +36,7 @@
3636 ;
3737 (define (get-pair L-ATOM R-ATOM)
3838 (define maybe-list (cog-link 'ListLink L-ATOM R-ATOM))
39 (if (null? maybe-list) '()
39 (if (not maybe-list) '()
4040 (cog-link 'EvaluationLink (Predicate "foo") maybe-list)))
4141
4242 ; Return the observed count for the pair PAIR.
……@@ -47,7 +47,7 @@
4747 ; exists, else return zero.
4848 (define (get-pair-count L-ATOM R-ATOM)
4949 (define stats-atom (get-pair L-ATOM R-ATOM))
50 (if (null? stats-atom) 0 (get-count stats-atom)))
50 (if (not stats-atom) 0 (get-count stats-atom)))
5151
5252 ; Return the atom holding the count, creating it if it does
5353 ; not yet exist. Returns the same structure as the 'item-pair