Chromium Code Reviews

Side by Side Diff: packages/which/test/candidate_paths_test.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « packages/which/pubspec.yaml ('k') | packages/which/test/has_permission_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
(Empty)
1
2 library which.test.candidate_paths;
3
4 import 'package:unittest/unittest.dart';
5
6 import 'util.dart';
7
8 main() {
9 group('getCandidatePaths', () {
10 test('posix', () {
11 var candidatePaths = getPosixCandidatePaths('z', '/x/y:/a/b/c', '/foo/bar' );
12 expect(candidatePaths, ['/x/y/z', '/a/b/c/z']);
13 });
14
15 test('windows', () {
16 var candidatePaths = getWindowsCandidatePaths('z', r'C:\x\y;C:\a\b\c', '.E XE;.BAT', r'C:\foo\bar');
17 expect(candidatePaths, [
18 r'C:\foo\bar\z.EXE',
19 r'C:\foo\bar\z.BAT',
20 r'C:\x\y\z.EXE',
21 r'C:\x\y\z.BAT',
22 r'C:\a\b\c\z.EXE',
23 r'C:\a\b\c\z.BAT']);
24 });
25 });
26 }
OLDNEW
« no previous file with comments | « packages/which/pubspec.yaml ('k') | packages/which/test/has_permission_test.dart » ('j') | no next file with comments »

Powered by Google App Engine