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

Side by Side Diff: test/escape_test.dart

Issue 1151853004: pkg/matcher: upgrate tests to test (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: Created 5 years, 7 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/core_matchers_test.dart ('k') | test/iterable_matchers_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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 matcher.escape_test; 5 library matcher.escape_test;
6 6
7 import 'package:matcher/src/util.dart'; 7 import 'package:matcher/src/util.dart';
8 import 'package:unittest/unittest.dart'; 8 import 'package:test/test.dart';
9 9
10 void main() { 10 void main() {
11 group('escaping should work with', () { 11 group('escaping should work with', () {
12 _testEscaping('no escaped chars', 'Hello, world!', 'Hello, world!'); 12 _testEscaping('no escaped chars', 'Hello, world!', 'Hello, world!');
13 _testEscaping('newline', '\n', r'\n'); 13 _testEscaping('newline', '\n', r'\n');
14 _testEscaping('carriage return', '\r', r'\r'); 14 _testEscaping('carriage return', '\r', r'\r');
15 _testEscaping('form feed', '\f', r'\f'); 15 _testEscaping('form feed', '\f', r'\f');
16 _testEscaping('backspace', '\b', r'\b'); 16 _testEscaping('backspace', '\b', r'\b');
17 _testEscaping('tab', '\t', r'\t'); 17 _testEscaping('tab', '\t', r'\t');
18 _testEscaping('vertical tab', '\v', r'\v'); 18 _testEscaping('vertical tab', '\v', r'\v');
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 expect(s1 != s2, isTrue, reason: 'The source values should be unequal'); 54 expect(s1 != s2, isTrue, reason: 'The source values should be unequal');
55 55
56 var escapedS1 = escape(s1); 56 var escapedS1 = escape(s1);
57 var escapedS2 = escape(s2); 57 var escapedS2 = escape(s2);
58 58
59 // Explicitly not using the equals matcher 59 // Explicitly not using the equals matcher
60 expect(escapedS1 != escapedS2, isTrue, 60 expect(escapedS1 != escapedS2, isTrue,
61 reason: 'Unequal strings, when escaped, should remain unequal.'); 61 reason: 'Unequal strings, when escaped, should remain unequal.');
62 }); 62 });
63 } 63 }
OLDNEW
« no previous file with comments | « test/core_matchers_test.dart ('k') | test/iterable_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698