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

Side by Side Diff: tests/standalone/crypto/base64_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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 | Annotate | Revision Log
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";
6
7 part "../../../sdk/lib/io/base64.dart"; 5 part "../../../sdk/lib/io/base64.dart";
8 6
9 void main() { 7 void main() {
10 String line; 8 String line;
11 String expected; 9 String expected;
12 10
13 line = 11 line =
14 "Man is distinguished, not only by his reason, but by this singular " 12 "Man is distinguished, not only by his reason, but by this singular "
15 "passion from other animals, which is a lust of the mind, that by a " 13 "passion from other animals, which is a lust of the mind, that by a "
16 "perseverance of delight in the continued and indefatigable generation " 14 "perseverance of delight in the continued and indefatigable generation "
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 for (int i = 0; i < 251; i++) { 60 for (int i = 0; i < 251; i++) {
63 List<int> x = [i, i + 1, i + 2, i + 3, i + 4, i + 5]; 61 List<int> x = [i, i + 1, i + 2, i + 3, i + 4, i + 5];
64 Expect.listEquals(x, _Base64._decode(_Base64._encode(x))); 62 Expect.listEquals(x, _Base64._decode(_Base64._encode(x)));
65 } 63 }
66 64
67 for (int i = 0; i < 250; i++) { 65 for (int i = 0; i < 250; i++) {
68 List<int> x = [i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6]; 66 List<int> x = [i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6];
69 Expect.listEquals(x, _Base64._decode(_Base64._encode(x))); 67 Expect.listEquals(x, _Base64._decode(_Base64._encode(x)));
70 } 68 }
71 } 69 }
OLDNEW
« no previous file with comments | « tests/standalone/constant_left_shift_test.dart ('k') | tests/standalone/debugger/basic_debugger_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698