| Index: tests/standalone/src/PlatformTest.dart
|
| diff --git a/tests/standalone/src/PlatformTest.dart b/tests/standalone/src/PlatformTest.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8796c65b2791122987422ccba788f76a13b9bc4b
|
| --- /dev/null
|
| +++ b/tests/standalone/src/PlatformTest.dart
|
| @@ -0,0 +1,12 @@
|
| +// Copyright (c) 2011, 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.
|
| +
|
| +main() {
|
| + var p = new Platform();
|
| + Expect.isTrue(p.numberOfProcessors() > 0);
|
| + var os = p.operatingSystem();
|
| + Expect.isTrue(os == "linux" || os == "macos" || os == "windows");
|
| + var sep = p.pathSeparator();
|
| + Expect.isTrue(sep == '/' || (os == 'windows' && sep == '\\'));
|
| +}
|
|
|