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

Side by Side Diff: tests/corelib/string_test.dart

Issue 11263040: Make String.charCodes a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « tests/corelib/is_operator_basic_types_test.dart ('k') | tests/lib/crypto/base64_test.dart » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // TODO(ngeoffray): test String methods with null arguments. 5 // TODO(ngeoffray): test String methods with null arguments.
6 class StringTest { 6 class StringTest {
7 7
8 static testMain() { 8 static testMain() {
9 testOutOfRange(); 9 testOutOfRange();
10 testIllegalArgument(); 10 testIllegalArgument();
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 Expect.equals(str[i], list[i]); 277 Expect.equals(str[i], list[i]);
278 } 278 }
279 } 279 }
280 test("abc"); 280 test("abc");
281 test(""); 281 test("");
282 test(" "); 282 test(" ");
283 } 283 }
284 284
285 static testCharCodes() { 285 static testCharCodes() {
286 test(str) { 286 test(str) {
287 var list = str.charCodes(); 287 var list = str.charCodes;
288 Expect.equals(str.length, list.length); 288 Expect.equals(str.length, list.length);
289 for (int i = 0; i < str.length; i++) { 289 for (int i = 0; i < str.length; i++) {
290 Expect.equals(str.charCodeAt(i), list[i]); 290 Expect.equals(str.charCodeAt(i), list[i]);
291 } 291 }
292 } 292 }
293 test("abc"); 293 test("abc");
294 test(""); 294 test("");
295 test(" "); 295 test(" ");
296 } 296 }
297 } 297 }
298 298
299 main() { 299 main() {
300 StringTest.testMain(); 300 StringTest.testMain();
301 } 301 }
OLDNEW
« no previous file with comments | « tests/corelib/is_operator_basic_types_test.dart ('k') | tests/lib/crypto/base64_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698