Node::toString Link::toString do not print TV appropriately and break test units when modified

Bug #494631 reported by Nil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
Fix Released
Undecided
Unassigned

Bug Description

Node::toString and Link::toString rely on TruthValue::getMean() and TruthValue::getCount to generate the string of the atom's TV. As a consequence it misses VersionedTVs when the TV is CompositeTV.

This can be easily fixed by relying on TruthValue::toString but when trying to modify Node::toString and Link::toString adequatly then more than a dozen of test units failed. This clearly is indicating a problem in the test units or worth in the code.

Revision history for this message
Nil (ngeiswei) wrote :

That was just an oversight, if extended correctly Node::toString and Link::toString do not break the test units.

Changed in opencog:
status: New → Fix Committed
linas (linasvepstas)
Changed in opencog:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.