blob: 4e3818e5ed09c42a3f39feacd4110bc60deae041 [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 factory Uri.https(String authority, String unencodedPath,
/// [Map<String, String> queryParameters])
/// Creates a new https URI from authority, path and query.
/// The scheme is always set to https.
/// @description Checks correct scheme setting
/// @author ilya
import "../../../Utils/expect.dart";
main() {
Expect.equals('https', new Uri.https('foo.bar', '\u0001').scheme);
Expect.equals('https', new Uri.https('', '').scheme);
}