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

Unified Diff: test/codegen/corelib/double_ceil2_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/date_time_test.dart ('k') | test/codegen/corelib/double_ceil_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/corelib/double_ceil2_test.dart
diff --git a/test/codegen/language/call_property_test.dart b/test/codegen/corelib/double_ceil2_test.dart
similarity index 51%
copy from test/codegen/language/call_property_test.dart
copy to test/codegen/corelib/double_ceil2_test.dart
index fbab14684ec543e9f18b68191b9b4f6e171d8d30..eab3dca3df677911be5e17885ccd6d1ad754647b 100644
--- a/test/codegen/language/call_property_test.dart
+++ b/test/codegen/corelib/double_ceil2_test.dart
@@ -2,18 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Test that a class with a [call] property does not implement [Function] or
-// a typedef of function type.
-
import 'package:expect/expect.dart';
-class Call {
- int get call => 0;
-}
-
-typedef void F();
-
main() {
- Expect.isFalse(new Call() is Function);
- Expect.isFalse(new Call() is F);
-}
+ Expect.throws(() => double.INFINITY.ceil(), (e) => e is UnsupportedError);
+ Expect.throws(() => double.NEGATIVE_INFINITY.ceil(),
+ (e) => e is UnsupportedError);
+ Expect.throws(() => double.NAN.ceil(), (e) => e is UnsupportedError);
+}
« no previous file with comments | « test/codegen/corelib/date_time_test.dart ('k') | test/codegen/corelib/double_ceil_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698