diff options
-rw-r--r-- | 003trace.test.cc | 6 | ||||
-rw-r--r-- | 050scenario.cc | 2 | ||||
-rw-r--r-- | 055shape_shifting_container.cc | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/003trace.test.cc b/003trace.test.cc index e90fd69c..098e510e 100644 --- a/003trace.test.cc +++ b/003trace.test.cc @@ -12,8 +12,8 @@ void test_trace_check_ignores_other_layers() { void test_trace_check_ignores_leading_whitespace() { trace("test layer 1") << " foo" << end(); - CHECK(trace_count("test layer 1", /*too little whitespace*/"foo") == 1); - CHECK(trace_count("test layer 1", /*too much whitespace*/" foo") == 1); + CHECK_EQ(trace_count("test layer 1", /*too little whitespace*/"foo"), 1); + CHECK_EQ(trace_count("test layer 1", /*too much whitespace*/" foo"), 1); } void test_trace_check_ignores_other_lines() { @@ -59,7 +59,7 @@ void test_trace_supports_count2() { void test_trace_count_ignores_trailing_whitespace() { trace("test layer 1") << "foo\n" << end(); - CHECK(trace_count("test layer 1", "foo") == 1); + CHECK_EQ(trace_count("test layer 1", "foo"), 1); } // pending: DUMP tests diff --git a/050scenario.cc b/050scenario.cc index 8d5f5f62..7a2ea7a8 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -230,7 +230,7 @@ void test_maybe_make_raw() { bind_special_scenario_names(tmp.at(0)); transform_all(); run(tmp.at(0)); - CHECK(trace_count("error") == 0); + CHECK_EQ(trace_count("error"), 0); } //: Watch out for redefinitions of scenario routines. We should never ever be diff --git a/055shape_shifting_container.cc b/055shape_shifting_container.cc index 375e1e18..60774926 100644 --- a/055shape_shifting_container.cc +++ b/055shape_shifting_container.cc @@ -201,7 +201,7 @@ def main [ +mem: storing 23 in location 7 +run: reply # no other stores -% CHECK(trace_count_prefix("mem", "storing") == 7); +% CHECK_EQ(trace_count_prefix("mem", "storing"), 7); :(scenario get_on_shape_shifting_container) container foo:_t [ |