Index: tests/corelib_2/num_clamp_test.dart |
diff --git a/tests/corelib/num_clamp_test.dart b/tests/corelib_2/num_clamp_test.dart |
similarity index 80% |
rename from tests/corelib/num_clamp_test.dart |
rename to tests/corelib_2/num_clamp_test.dart |
index b8731ab3c17f6dbdd383f3911ca3db508ca86f2e..04c060d0778e6026b5b732f49977e534755f60f7 100644 |
--- a/tests/corelib/num_clamp_test.dart |
+++ b/tests/corelib_2/num_clamp_test.dart |
@@ -16,10 +16,6 @@ testIntClamp() { |
Expect.equals(0, (-1).clamp(0, 0)); |
Expect.equals(0, 0.clamp(0, 0)); |
Expect.throws(() => 0.clamp(0, -1), (e) => e is ArgumentError); |
- Expect.throws( |
- () => 0.clamp("str", -1), (e) => e is ArgumentError || e is TypeError); |
- Expect.throws( |
- () => 0.clamp(0, "2"), (e) => e is ArgumentError || e is TypeError); |
} |
testDoubleClamp() { |
@@ -33,10 +29,6 @@ testDoubleClamp() { |
Expect.equals(0.0, (-1.0).clamp(0.0, 0.0)); |
Expect.equals(0.0, 0.0.clamp(0.0, 0.0)); |
Expect.throws(() => 0.0.clamp(0.0, -1.0), (e) => e is ArgumentError); |
- Expect.throws(() => 0.0.clamp("str", -1.0), |
- (e) => e is ArgumentError || e is TypeError); |
- Expect.throws( |
- () => 0.0.clamp(0.0, "2"), (e) => e is ArgumentError || e is TypeError); |
} |
testDoubleClampInt() { |
@@ -57,10 +49,6 @@ testDoubleClampInt() { |
Expect.equals(0.0, 0.0.clamp(0, 0)); |
Expect.isTrue(0.0.clamp(0, 0) is double); |
Expect.throws(() => 0.0.clamp(0, -1), (e) => e is ArgumentError); |
- Expect.throws( |
- () => 0.0.clamp("str", -1), (e) => e is ArgumentError || e is TypeError); |
- Expect.throws( |
- () => 0.0.clamp(0, "2"), (e) => e is ArgumentError || e is TypeError); |
} |
testDoubleClampExtremes() { |