| /* |
| * 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 leading slash does not affect the segments |
| * returned |
| * @author ilya |
| */ |
| import "../../../Utils/expect.dart"; |
| |
| main() { |
| Expect.listEquals(new Uri(path: 'a/b').pathSegments, |
| new Uri(path: '/a/b').pathSegments); |
| } |