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

Side by Side Diff: test/transcript_test.dart

Issue 1585513002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 11 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 | « test/test_pub.dart ('k') | test/transformer/a_transformer_rejects_its_config_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) 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 library version_test;
6
7 import 'package:pub/src/transcript.dart'; 5 import 'package:pub/src/transcript.dart';
8 import 'package:test/test.dart'; 6 import 'package:test/test.dart';
9 7
10 main() { 8 main() {
11 test("discards from the middle once it reaches the maximum", () { 9 test("discards from the middle once it reaches the maximum", () {
12 var transcript = new Transcript<String>(4); 10 var transcript = new Transcript<String>(4);
13 forEachToString() { 11 forEachToString() {
14 var result = ""; 12 var result = "";
15 transcript.forEach((entry) => result += entry, (n) => result += "[$n]"); 13 transcript.forEach((entry) => result += entry, (n) => result += "[$n]");
16 return result; 14 return result;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 expect(forEachToString(), equals("abc")); 46 expect(forEachToString(), equals("abc"));
49 transcript.add("d"); 47 transcript.add("d");
50 expect(forEachToString(), equals("abcd")); 48 expect(forEachToString(), equals("abcd"));
51 transcript.add("e"); 49 transcript.add("e");
52 expect(forEachToString(), equals("abcde")); 50 expect(forEachToString(), equals("abcde"));
53 transcript.add("f"); 51 transcript.add("f");
54 expect(forEachToString(), equals("abcdef")); 52 expect(forEachToString(), equals("abcdef"));
55 }); 53 });
56 54
57 } 55 }
OLDNEW
« no previous file with comments | « test/test_pub.dart ('k') | test/transformer/a_transformer_rejects_its_config_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698