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

Unified Diff: packages/which/test/which_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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/which/test/which_impl_test.dart ('k') | packages/yaml/.gitignore » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/which/test/which_test.dart
diff --git a/packages/which/test/which_test.dart b/packages/which/test/which_test.dart
new file mode 100755
index 0000000000000000000000000000000000000000..7511421c7a5c79e365ec26b49ae7de4af1e82656
--- /dev/null
+++ b/packages/which/test/which_test.dart
@@ -0,0 +1,26 @@
+
+library which.test.which;
+
+import 'package:path/path.dart';
+import 'package:unittest/unittest.dart';
+import 'package:which/which.dart';
+
+main() {
+ group('which', () {
+ // Any dart:io supported platform (*nix, osx, windows) should have `find`.
+ test('should find `find`', () => which('find').then(_testResult));
+ });
+
+ group('whichSync', () {
+ // Any dart:io supported platform (*nix, osx, windows) should have `find`.
+ test('should find `find`', () {
+ _testResult(whichSync('find'));
+ });
+ });
+}
+
+_testResult(String path) {
+ expect(path, isNotNull);
+ var base = basenameWithoutExtension(path);
+ expect(base, 'find');
+}
« no previous file with comments | « packages/which/test/which_impl_test.dart ('k') | packages/yaml/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698