Index: runtime/vm/assert_test.cc |
diff --git a/runtime/vm/assert_test.cc b/runtime/vm/assert_test.cc |
index 625f23b7d7e97e99ad41c8aa798e0af5521a893d..dc935f1c099d82377baa0cd7d699078c194e90f6 100644 |
--- a/runtime/vm/assert_test.cc |
+++ b/runtime/vm/assert_test.cc |
@@ -46,3 +46,18 @@ UNIT_TEST_CASE(Expect) { |
EXPECT_FLOAT_EQ(15.43, 15.44, 0.01); |
EXPECT_FLOAT_EQ(1.43, 1.43, 0.00); |
} |
+ |
+ |
+UNIT_TEST_CASE(Fail0) { |
+ FAIL("This test fails"); |
+} |
+ |
+ |
+UNIT_TEST_CASE(Fail1) { |
+ FAIL1("This test fails with one argument: %d", 4); |
+} |
+ |
+ |
+UNIT_TEST_CASE(Fail2) { |
+ FAIL2("This test fails with two arguments: %d, %d", -100, 42); |
+} |