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

Side by Side Diff: test/string_matchers_test.dart

Issue 1584563003: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/matcher@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/pretty_print_test.dart ('k') | test/test_utils.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 matcher.string_matchers_test;
6
7 import 'package:matcher/matcher.dart'; 5 import 'package:matcher/matcher.dart';
8 import 'package:test/test.dart' show test, group, expect; 6 import 'package:test/test.dart' show test, group, expect;
9 7
10 import 'test_utils.dart'; 8 import 'test_utils.dart';
11 9
12 void main() { 10 void main() {
13 test('Reports mismatches in whitespace and escape sequences', () { 11 test('Reports mismatches in whitespace and escape sequences', () {
14 shouldFail('before\nafter', equals('before\\nafter'), 12 shouldFail('before\nafter', equals('before\\nafter'),
15 contains('Differ at offset 7')); 13 contains('Differ at offset 7'));
16 }); 14 });
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 "Actual: 'goodbye cruel world'"); 102 "Actual: 'goodbye cruel world'");
105 }); 103 });
106 104
107 test('matches', () { 105 test('matches', () {
108 shouldPass('c0d', matches('[a-z][0-9][a-z]')); 106 shouldPass('c0d', matches('[a-z][0-9][a-z]'));
109 shouldPass('c0d', matches(new RegExp('[a-z][0-9][a-z]'))); 107 shouldPass('c0d', matches(new RegExp('[a-z][0-9][a-z]')));
110 shouldFail('cOd', matches('[a-z][0-9][a-z]'), 108 shouldFail('cOd', matches('[a-z][0-9][a-z]'),
111 "Expected: match '[a-z][0-9][a-z]' Actual: 'cOd'"); 109 "Expected: match '[a-z][0-9][a-z]' Actual: 'cOd'");
112 }); 110 });
113 } 111 }
OLDNEW
« no previous file with comments | « test/pretty_print_test.dart ('k') | test/test_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698