Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit ce68314

Browse files
committed
test invalid constructor parameter lists
1 parent 272e324 commit ce68314

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

t/014-invalid.t

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/perl
2+
use strict;
3+
use warnings;
4+
use 5.014;
5+
6+
use Test::More;
7+
use Test::Exception;
8+
9+
use DPHYS::MacAddress;
10+
11+
throws_ok( sub { DPHYS::MacAddress->new() }, qr{no MAC address});
12+
throws_ok( sub { DPHYS::MacAddress->new(1, 2) }, qr{more than one argument});
13+
14+
done_testing();

0 commit comments

Comments
 (0)