blob: 164d010604513dc687caad1b773e54bb1a8ee4b4 [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);
}