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

Side by Side Diff: runtime/vm/assert_test.cc

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check for correct rebase Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assert.cc ('k') | runtime/vm/ast.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/assert.h" 5 #include "platform/assert.h"
6 #include "vm/unit_test.h" 6 #include "vm/unit_test.h"
7 7
8 8
9 UNIT_TEST_CASE(Assert) { 9 UNIT_TEST_CASE(Assert) {
10 ASSERT(true); 10 ASSERT(true);
11 ASSERT(87 == 87); 11 ASSERT(87 == 87);
12 ASSERT(42 != 87); 12 ASSERT(42 != 87);
13 } 13 }
14 14
15 15
(...skipping 23 matching lines...) Expand all
39 EXPECT_GT(4, 1); 39 EXPECT_GT(4, 1);
40 EXPECT_GT(2.3, 2.2229); 40 EXPECT_GT(2.3, 2.2229);
41 41
42 EXPECT_GE(4, 4); 42 EXPECT_GE(4, 4);
43 EXPECT_GE(15.3, 15.3); 43 EXPECT_GE(15.3, 15.3);
44 EXPECT_GE(5, 3); 44 EXPECT_GE(5, 3);
45 45
46 EXPECT_FLOAT_EQ(15.43, 15.44, 0.01); 46 EXPECT_FLOAT_EQ(15.43, 15.44, 0.01);
47 EXPECT_FLOAT_EQ(1.43, 1.43, 0.00); 47 EXPECT_FLOAT_EQ(1.43, 1.43, 0.00);
48 } 48 }
OLDNEW
« no previous file with comments | « runtime/vm/assert.cc ('k') | runtime/vm/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698