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

Unified Diff: test/codegen/corelib/unicode_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/unicode2_test.dart ('k') | test/codegen/corelib/uri_base_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/corelib/unicode_test.dart
diff --git a/test/codegen/language/prefix_test.dart b/test/codegen/corelib/unicode_test.dart
similarity index 60%
copy from test/codegen/language/prefix_test.dart
copy to test/codegen/corelib/unicode_test.dart
index ec3208e84cb67a9749dc4945e91dab4e3cae2e80..32cddb50f3f368f3eaa4affa6b0dd6aa1183a9da 100644
--- a/test/codegen/language/prefix_test.dart
+++ b/test/codegen/corelib/unicode_test.dart
@@ -2,16 +2,17 @@
// 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.
-library PrefixTest.dart;
import "package:expect/expect.dart";
-import "prefix_test1.dart";
-class PrefixTest {
+class UnicodeTest {
+
static testMain() {
- Expect.equals(Prefix.getSource(), Prefix.getImport() + 1);
+ var lowerStrasse =
+ new String.fromCharCodes([115, 116, 114, 97, 223, 101]);
+ Expect.equals("STRASSE", lowerStrasse.toUpperCase());
}
}
main() {
- PrefixTest.testMain();
+ UnicodeTest.testMain();
}
« no previous file with comments | « test/codegen/corelib/unicode2_test.dart ('k') | test/codegen/corelib/uri_base_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698