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

Side by Side Diff: test/util.dart

Issue 1320533004: Switch from unittest to test. (Closed) Base URL: https://github.com/dart-lang/markdown.git@master
Patch Set: Created 5 years, 3 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
« pubspec.yaml ('K') | « test/markdown_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) 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 markdown.test.utils; 5 library markdown.test.utils;
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:test/test.dart';
8 8
9 import 'package:markdown/markdown.dart'; 9 import 'package:markdown/markdown.dart';
10 10
11 /// Removes eight spaces of leading indentation from a multiline string. 11 /// Removes eight spaces of leading indentation from a multiline string.
12 /// 12 ///
13 /// Note that this is very sensitive to how the literals are styled. They should 13 /// Note that this is very sensitive to how the literals are styled. They should
14 /// be: 14 /// be:
15 /// ''' 15 /// '''
16 /// Text starts on own line. Lines up with subsequent lines. 16 /// Text starts on own line. Lines up with subsequent lines.
17 /// Lines are indented exactly 8 characters from the left margin.''' 17 /// Lines are indented exactly 8 characters from the left margin.'''
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // If one string runs out of non-ignored strings, the other must too. 87 // If one string runs out of non-ignored strings, the other must too.
88 if (i == a.length) return j == b.length; 88 if (i == a.length) return j == b.length;
89 if (j == b.length) return i == a.length; 89 if (j == b.length) return i == a.length;
90 90
91 if (a[i] != b[j]) return false; 91 if (a[i] != b[j]) return false;
92 i++; 92 i++;
93 j++; 93 j++;
94 } 94 }
95 } 95 }
OLDNEW
« pubspec.yaml ('K') | « test/markdown_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698