| Index: tests/standalone/io/internet_address_test.dart
|
| diff --git a/tests/standalone/io/internet_address_test.dart b/tests/standalone/io/internet_address_test.dart
|
| index 22c4a66e7a9a32f5dbef41e50d1301d1d2904816..fd4b358b991887fd9cf0725d319274e6c5ba6b10 100644
|
| --- a/tests/standalone/io/internet_address_test.dart
|
| +++ b/tests/standalone/io/internet_address_test.dart
|
| @@ -32,6 +32,18 @@ void testDefaultAddresses() {
|
| Expect.equals("::", any6.address);
|
| }
|
|
|
| +void testLookup() {
|
| + InternetAddress.lookup("127.0.0.1").then((addresses) {
|
| + Expect.equals(1, addresses.length);
|
| + Expect.equals("127.0.0.1", addresses[0].address);
|
| + });
|
| +
|
| + InternetAddress.lookup("::1").then((addresses) {
|
| + Expect.equals(1, addresses.length);
|
| + Expect.equals("::1", addresses[0].address);
|
| + });
|
| +}
|
| +
|
| void testReverseLookup() {
|
| InternetAddress.lookup('localhost').then((addrs) {
|
| addrs.first.reverse().then((addr) {
|
| @@ -50,5 +62,6 @@ void testReverseLookup() {
|
|
|
| void main() {
|
| testDefaultAddresses();
|
| + testLookup();
|
| testReverseLookup();
|
| }
|
|
|