Skip to content

Commit 236c0ab

Browse files
committed
Alternate fix for bug opencog#1205
1 parent 9f1801c commit 236c0ab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/truthvalue/EvidenceCountTruthValueUTest.cxxtest

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030

3131
using namespace opencog;
3232

33-
// Workaround for isnan scope problem: https://github.com/opencog/atomspace/issues/1215
34-
using namespace std;
35-
3633
#define NUM_TVS 3
3734
#define TV1_POS_COUNT 10
3835
#define TV2_POS_COUNT 0
@@ -82,7 +79,7 @@ public:
8279
pos_counts[i] / total_counts[i],
8380
FLOAT_ACCEPTABLE_ERROR);
8481
} else {
85-
TS_ASSERT_IS_NAN(ectvs[i]->getMean());
82+
TS_ASSERT(std::isnan(ectvs[i]->getMean()));
8683
}
8784
}
8885
}

0 commit comments

Comments
 (0)