blob: 36a8023631f0a78135b0478143ba8675ea501be4 [file] [log] [blame]
// Copyright (c) 2011, 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 final List<String> pathSegments
* Returns the URI path split into its segments.
* Each of the segments in the returned list have been decoded. If the path
* is empty the empty list will be returned. A leading slash / does not
* affect the segments returned.
* @description Checks that empty list is returned if path is empty
* @author ilya
*/
import "../../../Utils/expect.dart";
main() {
var x = Uri.parse('http://');
Expect.listEquals([],x.pathSegments);
}