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

Unified Diff: tests/language/double_to_string_as_fixed2_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
Index: tests/language/double_to_string_as_fixed2_test.dart
diff --git a/tests/language/double_to_string_as_fixed2_test.dart b/tests/language/double_to_string_as_fixed2_test.dart
index d3f97429d84bf6661acd0d1792891863549c8b7c..4da08a4b823d8e408957dfac7d0ca2e9b0910e4f 100644
--- a/tests/language/double_to_string_as_fixed2_test.dart
+++ b/tests/language/double_to_string_as_fixed2_test.dart
@@ -6,17 +6,16 @@
import "package:expect/expect.dart";
main() {
- var v = 0.0;
- Expect.throws(() => v.toStringAsFixed(-1),
+ Expect.throws(() => 0.0.toStringAsFixed(-1),
(e) => e is RangeError);
- Expect.throws(() => v.toStringAsFixed(21),
+ Expect.throws(() => 0.0.toStringAsFixed(21),
(e) => e is RangeError);
- Expect.throws(() => v.toStringAsFixed(null),
+ Expect.throws(() => 0.0.toStringAsFixed(null),
(e) => e is ArgumentError);
- Expect.throws(() => v.toStringAsFixed(1.5),
+ Expect.throws(() => 0.0.toStringAsFixed(1.5),
(e) => e is ArgumentError || e is TypeError);
- Expect.throws(() => v.toStringAsFixed("string"),
+ Expect.throws(() => 0.0.toStringAsFixed("string"),
(e) => e is ArgumentError || e is TypeError);
- Expect.throws(() => v.toStringAsFixed("3"),
+ Expect.throws(() => 0.0.toStringAsFixed("3"),
(e) => e is ArgumentError || e is TypeError);
}
« no previous file with comments | « tests/language/double_to_string_as_exponential2_test.dart ('k') | tests/language/double_to_string_as_precision2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698