| Index: sdk/lib/_internal/pub_generated/test/transcript_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/transcript_test.dart b/sdk/lib/_internal/pub_generated/test/transcript_test.dart
|
| similarity index 88%
|
| copy from sdk/lib/_internal/pub/test/transcript_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/transcript_test.dart
|
| index 34ea1303a00af90cf8f49e1d5b13769cce40808f..ff58358dfd5136f53fc6b1f68b71910d81c029e8 100644
|
| --- a/sdk/lib/_internal/pub/test/transcript_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/transcript_test.dart
|
| @@ -1,16 +1,9 @@
|
| -// 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() {
|
| @@ -18,7 +11,6 @@ main() {
|
| transcript.forEach((entry) => result += entry, (n) => result += "[$n]");
|
| return result;
|
| }
|
| -
|
| expect(forEachToString(), equals(""));
|
| transcript.add("a");
|
| expect(forEachToString(), equals("a"));
|
| @@ -33,7 +25,6 @@ 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() {
|
| @@ -41,7 +32,6 @@ main() {
|
| transcript.forEach((entry) => result += entry, (n) => result += "[$n]");
|
| return result;
|
| }
|
| -
|
| expect(forEachToString(), equals(""));
|
| transcript.add("a");
|
| expect(forEachToString(), equals("a"));
|
| @@ -56,5 +46,4 @@ main() {
|
| transcript.add("f");
|
| expect(forEachToString(), equals("abcdef"));
|
| });
|
| -
|
| }
|
|
|