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

Unified Diff: tests/language/number_syntax_test.dart

Issue 10914286: Remove Object.dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review smells. Created 8 years, 3 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 | « tests/html/instance_of_test.dart ('k') | tests/language/object_dynamic_method_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/number_syntax_test.dart
diff --git a/tests/language/number_syntax_test.dart b/tests/language/number_syntax_test.dart
index be57ab0047783d3818f306cc691acd69aa53a0ba..7ec4e24a4aa7d2514c1f26c30bc6e03969067376 100644
--- a/tests/language/number_syntax_test.dart
+++ b/tests/language/number_syntax_test.dart
@@ -17,59 +17,35 @@ class NumberSyntaxTest {
static void testDotSelectorSyntax() {
// Integers.
- Expect.equals(0, 0.dynamic);
- Expect.equals(1, 1.dynamic);
- Expect.equals(123, 123.dynamic);
Expect.equals('0', 0.toString());
Expect.equals('1', 1.toString());
Expect.equals('123', 123.toString());
- Expect.equals(0, 0 .dynamic);
- Expect.equals(1, 1 .dynamic);
- Expect.equals(123, 123 .dynamic);
Expect.equals('0', 0 .toString());
Expect.equals('1', 1 .toString());
Expect.equals('123', 123 .toString());
- Expect.equals(0, 0. dynamic);
- Expect.equals(1, 1. dynamic);
- Expect.equals(123, 123. dynamic);
Expect.equals('0', 0. toString());
Expect.equals('1', 1. toString());
Expect.equals('123', 123. toString());
// Doubles.
- Expect.equals(0.0, 0.0.dynamic);
- Expect.equals(0.1, .1.dynamic);
- Expect.equals(1.1, 1.1.dynamic);
- Expect.equals(123.4, 123.4.dynamic);
Expect.equals((0.0).toString(), 0.0.toString());
Expect.equals((0.1).toString(), .1.toString());
Expect.equals((1.1).toString(), 1.1.toString());
Expect.equals((123.4).toString(), 123.4.toString());
- Expect.equals(0.0, 0.0 .dynamic);
- Expect.equals(0.1, .1.dynamic);
- Expect.equals(1.1, 1.1 .dynamic);
- Expect.equals(123.4, 123.4 .dynamic);
Expect.equals((0.0).toString(), 0.0 .toString());
Expect.equals((0.1).toString(), .1 .toString());
Expect.equals((1.1).toString(), 1.1 .toString());
Expect.equals((123.4).toString(), 123.4 .toString());
- Expect.equals(0.0, 0.0. dynamic);
- Expect.equals(0.1, .1.dynamic);
- Expect.equals(1.1, 1.1. dynamic);
- Expect.equals(123.4, 123.4. dynamic);
Expect.equals((0.0).toString(), 0.0. toString());
Expect.equals((0.1).toString(), .1. toString());
Expect.equals((1.1).toString(), 1.1. toString());
Expect.equals((123.4).toString(), 123.4. toString());
// Exponent notation.
- Expect.equals(0e0, 0e0.dynamic);
- Expect.equals(1e+1, 1e+1.dynamic);
- Expect.equals(2.1e-34, 2.1e-34.dynamic);
Expect.equals((0e0).toString(), 0e0.toString());
Expect.equals((1e+1).toString(), 1e+1.toString());
Expect.equals((2.1e-34).toString(), 2.1e-34.toString());
« no previous file with comments | « tests/html/instance_of_test.dart ('k') | tests/language/object_dynamic_method_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698