mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:41:24 +00:00
Fix path separator in test for Windows.
Change-Id: I542dedcf46336d38c2c641e508c6d8c9f7bb4adb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107565 Reviewed-by: Nate Bosch <nbosch@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
This commit is contained in:
parent
34925166a8
commit
690ab40377
|
@ -1,6 +1,7 @@
|
|||
// Copyright (c) 2019, 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.
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:expect/expect.dart';
|
||||
|
||||
|
@ -167,7 +168,8 @@ void testParsePackages() {
|
|||
file = parse("""
|
||||
${'//'} Packages=packages thing
|
||||
""");
|
||||
Expect.isTrue(file.packages.endsWith("/packages thing"));
|
||||
Expect.isTrue(
|
||||
file.packages.endsWith("${Platform.pathSeparator}packages thing"));
|
||||
|
||||
// "none" is left alone.
|
||||
file = parse("""
|
||||
|
|
Loading…
Reference in a new issue