Reapply utf85_test.
Bug in VM has been fixed. It shouldn't take that long anymore. This test was originally LGTMed in https://chromiumcodereview.appspot.com/25463003/ R=fschneider@google.com Review URL: https://codereview.chromium.org//25539006 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28198 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
||||
// 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() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user