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

Unified Diff: tests/language_2/arithmetic_test.dart

Issue 2984443003: Migrate the language tests up to arithmetic_test. (Closed)
Patch Set: generic_methods_generic_function_result_test isn't working on DDC yet. Created 3 years, 5 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_2/arithmetic_smi_overflow_test.dart ('k') | tests/language_2/language_2.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/arithmetic_test.dart
diff --git a/tests/language/arithmetic_test.dart b/tests/language_2/arithmetic_test.dart
similarity index 95%
rename from tests/language/arithmetic_test.dart
rename to tests/language_2/arithmetic_test.dart
index 79db606ad91afb15c4a84c8cd23ed31c687e226f..8d83abe3c1117a9abca4916a3a4add7d43e4735b 100644
--- a/tests/language/arithmetic_test.dart
+++ b/tests/language_2/arithmetic_test.dart
@@ -58,35 +58,35 @@ class ArithmeticTest {
Expect.equals(1 << i, a ~/ b);
}
a = 22;
- b = 4.0;
+ var c = 4.0;
// Smi & double.
- Expect.equals(26.0, a + b);
- Expect.equals(18.0, a - b);
- Expect.equals(88.0, a * b);
- Expect.equals(5, a ~/ b);
- Expect.equals(5.5, a / b);
- Expect.equals(2.0, a % b);
- Expect.equals(2.0, a.remainder(b));
- a = 22.0;
+ Expect.equals(26.0, a + c);
+ Expect.equals(18.0, a - c);
+ Expect.equals(88.0, a * c);
+ Expect.equals(5, a ~/ c);
+ Expect.equals(5.5, a / c);
+ Expect.equals(2.0, a % c);
+ Expect.equals(2.0, a.remainder(c));
+ var d = 22.0;
b = 4;
// Double & smi.
- Expect.equals(26.0, a + b);
- Expect.equals(18.0, a - b);
- Expect.equals(88.0, a * b);
- Expect.equals(5, a ~/ b);
- Expect.equals(5.5, a / b);
- Expect.equals(2.0, a % b);
- Expect.equals(2.0, a.remainder(b));
- a = 22.0;
- b = 4.0;
+ Expect.equals(26.0, d + b);
+ Expect.equals(18.0, d - b);
+ Expect.equals(88.0, d * b);
+ Expect.equals(5, d ~/ b);
+ Expect.equals(5.5, d / b);
+ Expect.equals(2.0, d % b);
+ Expect.equals(2.0, d.remainder(b));
+ d = 22.0;
+ c = 4.0;
// Double & double.
- Expect.equals(26.0, a + b);
- Expect.equals(18.0, a - b);
- Expect.equals(88.0, a * b);
- Expect.equals(5, a ~/ b);
- Expect.equals(5.5, a / b);
- Expect.equals(2.0, a % b);
- Expect.equals(2.0, a.remainder(b));
+ Expect.equals(26.0, d + c);
+ Expect.equals(18.0, d - c);
+ Expect.equals(88.0, d * c);
+ Expect.equals(5, d ~/ c);
+ Expect.equals(5.5, d / c);
+ Expect.equals(2.0, d % c);
+ Expect.equals(2.0, d.remainder(c));
// Special int operations.
Expect.equals(2, (2).floor());
« no previous file with comments | « tests/language_2/arithmetic_smi_overflow_test.dart ('k') | tests/language_2/language_2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698