blob: a71bf8a825dfb6f817400de0ceea86c2680456c8 [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.
// @dart = 2.9
/// @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);
}