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

Side by Side Diff: tests/corelib_2/string_fromcharcode_test.dart

Issue 2989473002: Migrated test block 27 to Dart 2.0. (Closed)
Patch Set: Addressed Bob's nits and fixed test failures Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « tests/corelib_2/string_from_list_test.dart ('k') | tests/corelib_strong/corelib_strong.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 main() { 7 main() {
8 Expect.equals("A", new String.fromCharCode(65)); 8 Expect.equals("A", new String.fromCharCode(65));
9 Expect.equals("B", new String.fromCharCode(66)); 9 Expect.equals("B", new String.fromCharCode(66));
10 var gClef = new String.fromCharCode(0x1D11E); 10 var gClef = new String.fromCharCode(0x1D11E);
(...skipping 11 matching lines...) Expand all
22 22
23 Expect.throws(() => new String.fromCharCode(-1), (e) => e is ArgumentError); 23 Expect.throws(() => new String.fromCharCode(-1), (e) => e is ArgumentError);
24 24
25 // Invalid code point. 25 // Invalid code point.
26 Expect.throws( 26 Expect.throws(
27 () => new String.fromCharCode(0x110000), (e) => e is ArgumentError); 27 () => new String.fromCharCode(0x110000), (e) => e is ArgumentError);
28 28
29 Expect.throws( 29 Expect.throws(
30 () => new String.fromCharCode(0x110001), (e) => e is ArgumentError); 30 () => new String.fromCharCode(0x110001), (e) => e is ArgumentError);
31 } 31 }
OLDNEW
« no previous file with comments | « tests/corelib_2/string_from_list_test.dart ('k') | tests/corelib_strong/corelib_strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698