blob: 690d98f03b5f39400dc4cad372a7457f30f4d5c3 [file] [log] [blame]
// Copyright (c) 2017, 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.
/// @assertion Link(String path)
/// Creates a Link object.
/// @description Checks that this constructor creates a Link object. Test
/// relative path
/// @author sgrekhov@unipro.ru
import "dart:io";
import "../../../Utils/expect.dart";
main() {
Link link = new Link("TestDir" + Platform.pathSeparator + "tmp.dart");
Expect.equals(Directory.current.path + Platform.pathSeparator + "TestDir" +
Platform.pathSeparator + "tmp.dart", link.absolute.path);
}