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

Unified Diff: test/codegen/corelib/bool_hashcode_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
Index: test/codegen/corelib/bool_hashcode_test.dart
diff --git a/test/codegen/language/left_shift_test.dart b/test/codegen/corelib/bool_hashcode_test.dart
similarity index 66%
copy from test/codegen/language/left_shift_test.dart
copy to test/codegen/corelib/bool_hashcode_test.dart
index 7f151b10ffd2a557114f72f6bb3097625737f4f2..d33b14a05d59e88b215f2ebd99414c669ffb12c0 100644
--- a/test/codegen/language/left_shift_test.dart
+++ b/test/codegen/corelib/bool_hashcode_test.dart
@@ -4,10 +4,12 @@
import "package:expect/expect.dart";
-main() {
- for (int i = 0; i < 80; i++) {
- var a = -1 << i;
- var b = -1;
- Expect.equals(1 << i, a ~/ b);
+class BoolHashCodeTest {
+ static testMain() {
+ Expect.notEquals(true.hashCode, false.hashCode);
}
}
+
+main() {
+ BoolHashCodeTest.testMain();
+}
« no previous file with comments | « test/codegen/corelib/bool_from_environment_test.dart ('k') | test/codegen/corelib/collection_from_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698