| Index: sdk/lib/_internal/pub_generated/test/transcript_test.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/test/transcript_test.dart b/sdk/lib/_internal/pub_generated/test/transcript_test.dart
|
| index ff58358dfd5136f53fc6b1f68b71910d81c029e8..34ea1303a00af90cf8f49e1d5b13769cce40808f 100644
|
| --- a/sdk/lib/_internal/pub_generated/test/transcript_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/transcript_test.dart
|
| @@ -1,9 +1,16 @@
|
| +// 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 version_test;
|
| +
|
| import 'package:unittest/unittest.dart';
|
| import 'test_pub.dart';
|
| import '../lib/src/transcript.dart';
|
| +
|
| main() {
|
| initConfig();
|
| +
|
| test("discards from the middle once it reaches the maximum", () {
|
| var transcript = new Transcript<String>(4);
|
| forEachToString() {
|
| @@ -11,6 +18,7 @@ main() {
|
| transcript.forEach((entry) => result += entry, (n) => result += "[$n]");
|
| return result;
|
| }
|
| +
|
| expect(forEachToString(), equals(""));
|
| transcript.add("a");
|
| expect(forEachToString(), equals("a"));
|
| @@ -25,6 +33,7 @@ main() {
|
| transcript.add("f");
|
| expect(forEachToString(), equals("ab[2]ef"));
|
| });
|
| +
|
| test("does not discard if it doesn't reach the maximum", () {
|
| var transcript = new Transcript<String>(40);
|
| forEachToString() {
|
| @@ -32,6 +41,7 @@ main() {
|
| transcript.forEach((entry) => result += entry, (n) => result += "[$n]");
|
| return result;
|
| }
|
| +
|
| expect(forEachToString(), equals(""));
|
| transcript.add("a");
|
| expect(forEachToString(), equals("a"));
|
| @@ -46,4 +56,5 @@ main() {
|
| transcript.add("f");
|
| expect(forEachToString(), equals("abcdef"));
|
| });
|
| +
|
| }
|
|
|