blob: 29de162293e2f55902b41318abce55c75812cf77 [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.
// @dart = 2.9
/// @assertion List<int> rawAddress
/// The result is either a [4] or [16] byte long list.
/// @description Checks that for IPv4 addresses 4-byte long [List] is returned.
/// @author iarkh@unipro.ru
import "../../../Utils/expect.dart";
import "dart:io";
main() {
InternetAddress address = new InternetAddress("123.14.1.128");
List<int> list = address.rawAddress;
Expect.equals(4, list.length);
}