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:
Robert Nystrom 2019-06-27 22:35:53 +00:00 committed by commit-bot@chromium.org
parent 34925166a8
commit 690ab40377

View file

@ -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("""