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

Side by Side Diff: test/string_accumulator_sink_test.dart

Issue 1912273003: Make the package strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/convert.git@master
Patch Set: Code review changes Created 4 years, 8 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/percent_test.dart ('k') | no next file » | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'dart:async';
6
7 import 'package:convert/convert.dart'; 5 import 'package:convert/convert.dart';
8 import 'package:test/test.dart'; 6 import 'package:test/test.dart';
9 7
10 void main() { 8 void main() {
11 var sink; 9 var sink;
12 setUp(() { 10 setUp(() {
13 sink = new StringAccumulatorSink(); 11 sink = new StringAccumulatorSink();
14 }); 12 });
15 13
16 test("provides access to the concatenated string", () { 14 test("provides access to the concatenated string", () {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 test("doesn't allow add() to be called after close()", () { 47 test("doesn't allow add() to be called after close()", () {
50 sink.close(); 48 sink.close();
51 expect(() => sink.add("x"), throwsStateError); 49 expect(() => sink.add("x"), throwsStateError);
52 }); 50 });
53 51
54 test("doesn't allow addSlice() to be called after close()", () { 52 test("doesn't allow addSlice() to be called after close()", () {
55 sink.close(); 53 sink.close();
56 expect(() => sink.addSlice("", 0, 0, false), throwsStateError); 54 expect(() => sink.addSlice("", 0, 0, false), throwsStateError);
57 }); 55 });
58 } 56 }
OLDNEW
« no previous file with comments | « test/percent_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698