blob: 887ee7eac287947674c04f968aae10c5ea8b036e [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 List<int> parseIPv6Address(String host, [int start = 0, int end])
/// Parse the host as an IP version 6 (IPv6) address, returning the address as a
/// list of 16 bytes in network byte order (big endian).
/// ...
/// Throws a FormatException if host is not a valid IPv6 address representation.
/// @description Checks that FormatException is thrown if host is not a valid
/// IPv6 address representation
/// @author
import "../../../Utils/expect.dart";
main() {
Expect.throws(() {
}, (e) => e is FormatException);
Expect.throws(() {
}, (e) => e is FormatException);
Expect.throws(() {
}, (e) => e is FormatException);