Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (11 sloc) 254 Bytes
use v6;
use Test;
# old: L<S16/"Unfiled"/"IO.getpeername">
# L<S32::IO/IO::Socket/getpeername>
=begin pod
IO.getpeername test
=end pod
plan 1;
my $sock = connect('google.com', 80);
ok $sock.getpeername.defined, "IO.getpeer works";
# vim: ft=perl6