OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include "src/shared/assert.h" | 5 #include "src/shared/assert.h" |
6 #include "src/shared/test_case.h" | 6 #include "src/shared/test_case.h" |
7 | 7 |
8 TEST_CASE(Assert) { | 8 TEST_CASE(Assert) { |
9 ASSERT(true); | 9 ASSERT(true); |
10 ASSERT(87 == 87); | 10 ASSERT(87 == 87); |
11 ASSERT(42 != 87); | 11 ASSERT(42 != 87); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 EXPECT_LE(1, 2); | 44 EXPECT_LE(1, 2); |
45 EXPECT_LE(0.5, 1); | 45 EXPECT_LE(0.5, 1); |
46 | 46 |
47 EXPECT_GT(4, 1); | 47 EXPECT_GT(4, 1); |
48 EXPECT_GT(2.3, 2.2229); | 48 EXPECT_GT(2.3, 2.2229); |
49 | 49 |
50 EXPECT_GE(4, 4); | 50 EXPECT_GE(4, 4); |
51 EXPECT_GE(15.3, 15.3); | 51 EXPECT_GE(15.3, 15.3); |
52 EXPECT_GE(5, 3); | 52 EXPECT_GE(5, 3); |
53 } | 53 } |
OLD | NEW |