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

Unified Diff: tests/language/double_to_string_as_precision2_test.dart

Issue 166433002: Revert "Fix language tests wrt. warnings." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/language/double_to_string_as_fixed2_test.dart ('k') | tests/language/dynamic_field_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/double_to_string_as_precision2_test.dart
diff --git a/tests/language/double_to_string_as_precision2_test.dart b/tests/language/double_to_string_as_precision2_test.dart
index 81520f76bfbbb962edcd18ee7fa3b70676a01895..a2f78f035ab1e68b870d42b6bcc479ef430f7bdf 100644
--- a/tests/language/double_to_string_as_precision2_test.dart
+++ b/tests/language/double_to_string_as_precision2_test.dart
@@ -6,18 +6,17 @@
import "package:expect/expect.dart";
main() {
- var v = 0.0;
- Expect.throws(() => v.toStringAsPrecision(0),
+ Expect.throws(() => 0.0.toStringAsPrecision(0),
(e) => e is RangeError);
- Expect.throws(() => v.toStringAsPrecision(22),
+ Expect.throws(() => 0.0.toStringAsPrecision(22),
(e) => e is RangeError);
- Expect.throws(() => v.toStringAsPrecision(null),
+ Expect.throws(() => 0.0.toStringAsPrecision(null),
(e) => e is ArgumentError);
- Expect.throws(() => v.toStringAsPrecision(1.5),
+ Expect.throws(() => 0.0.toStringAsPrecision(1.5),
(e) => e is ArgumentError || e is TypeError);
- Expect.throws(() => v.toStringAsPrecision("string"),
+ Expect.throws(() => 0.0.toStringAsPrecision("string"),
(e) => e is ArgumentError || e is TypeError);
- Expect.throws(() => v.toStringAsPrecision("3"),
+ Expect.throws(() => 0.0.toStringAsPrecision("3"),
(e) => e is ArgumentError || e is TypeError);
}
« no previous file with comments | « tests/language/double_to_string_as_fixed2_test.dart ('k') | tests/language/dynamic_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698