| Index: tests/lib/platform/path_separator_test.dart
|
| diff --git a/tests/language/list_tracer_call_last_test.dart b/tests/lib/platform/path_separator_test.dart
|
| similarity index 53%
|
| copy from tests/language/list_tracer_call_last_test.dart
|
| copy to tests/lib/platform/path_separator_test.dart
|
| index dbaf1360ce5144e2afbb1cc6c13199f2b4f281f6..f40c941498ff4be4dac3b88312d04b0da8a30113 100644
|
| --- a/tests/language/list_tracer_call_last_test.dart
|
| +++ b/tests/lib/platform/path_separator_test.dart
|
| @@ -2,12 +2,14 @@
|
| // 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.
|
|
|
| -// dart2js used to fail this test, by inferring that `a.last()`
|
| -// returns the element type of the `a` list.
|
| +import "dart:platform" as platform;
|
| +
|
| +import "package:unittest/unittest.dart";
|
|
|
| main() {
|
| - var a = [() => 123];
|
| - if (a.last() is! num) {
|
| - throw 'Test failed';
|
| + if (platform.isWindows) {
|
| + expect(platform.pathSeparator, '\\');
|
| + } else {
|
| + expect(platform.pathSeparator, '/');
|
| }
|
| }
|
|
|