blob: b41423a63948d1cc55bd37cd16fb9c6091fa9945 [file] [log] [blame]
// Copyright (c) 2015, 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.
// Packages=mixed_line_ends.packages
// This test verifies handling of legacy .packages file and cannot be run in
// null safety (strong) mode as strong mode needs new package_config.json.
// Requirements=nnbd-weak
library mixed_line_ends_test;
import 'package:foo/foo.dart' as foo;
import 'package:bar/bar.dart' as bar;
import 'package:baz/baz.dart' as baz;
main() {
if (foo.foo != 'foo') {
throw new Exception('package "foo" was not resolved correctly');
}
if (bar.bar != 'bar') {
throw new Exception('package "bar" was not resolved correctly');
}
if (baz.baz != 'baz') {
throw new Exception('package "baz" was not resolved correctly');
}
}