Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: runtime/vm/assert_test.cc

Issue 2085703002: Remove STL use from platform/assert.cc (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add parens Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698