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

Unified Diff: test/codegen/corelib/double_round3_test.dart

Issue 1945153002: Add corelib tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: error_test and range_error_test now pass Created 4 years, 7 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 | « test/codegen/corelib/double_round2_test.dart ('k') | test/codegen/corelib/double_round4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/corelib/double_round3_test.dart
diff --git a/test/codegen/language/malbounded_type_literal_test.dart b/test/codegen/corelib/double_round3_test.dart
similarity index 55%
copy from test/codegen/language/malbounded_type_literal_test.dart
copy to test/codegen/corelib/double_round3_test.dart
index ca64d7efa8b66168b1bb82207f864ee87d467797..55646405499aec0805e917b444197a8750d133cb 100644
--- a/test/codegen/language/malbounded_type_literal_test.dart
+++ b/test/codegen/corelib/double_round3_test.dart
@@ -4,11 +4,9 @@
import 'package:expect/expect.dart';
-class Super<T extends num> {}
-class Malbounded extends Super<String> {}
-
main() {
- Type t = Malbounded;
- Expect.isNotNull(t);
- Expect.isTrue(t is Type);
-}
+ Expect.equals(0, 0.49999999999999994.round());
+ Expect.equals(0, (-0.49999999999999994).round());
+ Expect.isTrue(0.49999999999999994.round() is int);
+ Expect.isTrue((-0.49999999999999994).round() is int);
+}
« no previous file with comments | « test/codegen/corelib/double_round2_test.dart ('k') | test/codegen/corelib/double_round4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698