Index: pkg/pathos/test/pathos_io_test.dart |
diff --git a/pkg/pathos/test/pathos_test.dart b/pkg/pathos/test/pathos_io_test.dart |
similarity index 50% |
copy from pkg/pathos/test/pathos_test.dart |
copy to pkg/pathos/test/pathos_io_test.dart |
index 2d56ee22b5e422fcbc7232ee3b6a229162a33191..bb14bd7cb38568ef592678875fc63053735255fa 100644 |
--- a/pkg/pathos/test/pathos_test.dart |
+++ b/pkg/pathos/test/pathos_io_test.dart |
@@ -1,43 +1,14 @@ |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library pathos_test; |
- |
import 'dart:io' as io; |
import 'package:unittest/unittest.dart'; |
import 'package:pathos/path.dart' as path; |
main() { |
- group('path.Style', () { |
- test('name', () { |
- expect(path.Style.posix.name, 'posix'); |
- expect(path.Style.windows.name, 'windows'); |
- }); |
- |
- test('separator', () { |
- expect(path.Style.posix.separator, '/'); |
- expect(path.Style.windows.separator, '\\'); |
- }); |
- |
- test('toString()', () { |
- expect(path.Style.posix.toString(), 'posix'); |
- expect(path.Style.windows.toString(), 'windows'); |
- }); |
- }); |
- |
group('new Builder()', () { |
- test('uses the given root directory', () { |
- var builder = new path.Builder(root: '/a/b/c'); |
- expect(builder.root, '/a/b/c'); |
- }); |
- |
- test('uses the given style', () { |
- var builder = new path.Builder(style: path.Style.windows); |
- expect(builder.style, path.Style.windows); |
- }); |
- |
test('uses the current working directory if root is omitted', () { |
var builder = new path.Builder(); |
expect(builder.root, io.Directory.current.path); |