Skip to content

Commit

Permalink
Merge pull request #23 from opencog/sh
Browse files Browse the repository at this point in the history
Bug fix for changed NumberNode format
  • Loading branch information
linas committed Dec 11, 2019
2 parents c956817 + 032364b commit 965530d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/shell/ShellUTest.cxxtest
Expand Up @@ -61,18 +61,18 @@ void gargleblast(int tid, int reps)
// guile> (EvaluationLink
// (PredicateNode "visible face")
// (ListLink
// (NumberNode "28010.000000")
// (NumberNode "28010")
// )
// )
//
// guile>
// guile> ; note blank space here
// Which is exactly 282 chars long.
// Which is exactly 275 chars long.
// If the greeting changes, then adjust for the correct size.
//
// Hmm. Seems that sometimes some trailing newline gets cut,
// and so the reply might be short by one byte. Seems harmless.
#define CUR_MSG_SZ 281
#define CUR_MSG_SZ 274
TS_ASSERT_LESS_THAN_EQUALS(CUR_MSG_SZ, reso.size());
TS_ASSERT_LESS_THAN_EQUALS(reso.size(), CUR_MSG_SZ+1);
if (reso.size() < CUR_MSG_SZ or (CUR_MSG_SZ+1) < reso.size())
Expand Down

0 comments on commit 965530d

Please sign in to comment.