| Index: test/codegen/lib/convert/utf85_test.dart
|
| diff --git a/test/codegen/language/abstract_syntax_test.dart b/test/codegen/lib/convert/utf85_test.dart
|
| similarity index 52%
|
| copy from test/codegen/language/abstract_syntax_test.dart
|
| copy to test/codegen/lib/convert/utf85_test.dart
|
| index 875b203c45a444fa4a1a3acd3033b70debbbabe0..3b5edc0528cff71e853bf0a1cb7f047103045982 100644
|
| --- a/test/codegen/language/abstract_syntax_test.dart
|
| +++ b/test/codegen/lib/convert/utf85_test.dart
|
| @@ -2,19 +2,14 @@
|
| // 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 utf8_test;
|
| import "package:expect/expect.dart";
|
| +import 'dart:convert';
|
|
|
| main() {
|
| - var b = new B();
|
| - Expect.equals(42, b.foo());
|
| -}
|
| -
|
| -class A {
|
| - foo(); /// 00: static type warning
|
| - static bar(); /// 01: compile-time error
|
| -}
|
| -
|
| -class B extends A {
|
| - foo() => 42;
|
| - bar() => 87;
|
| + for (int i = 0; i <= 0x10FFFF; i++) {
|
| + if (i == UNICODE_BOM_CHARACTER_RUNE) continue;
|
| + Expect.equals(i,
|
| + UTF8.decode(UTF8.encode(new String.fromCharCode(i))).runes.first);
|
| + }
|
| }
|
|
|