| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use warningsscip-perl cpan Test-Inter 1.13 warnings/ 'all'; |
| 4 | use strictscip-perl cpan Test-Inter 1.13 strict/; |
| 5 | BEGIN { |
| 6 | if (-d "lib") { |
| 7 | use libscip-perl cpan Test-Inter 1.13 lib/ "./lib"; |
| 8 | } elsif (-d "../lib") { |
| 9 | use libscip-perl cpan Test-Inter 1.13 lib/ "../lib"; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | use Test::Interscip-perl cpan Test-Inter 1.13 Test/Inter/; |
| 14 | my $ti = new Test::Inter $0scip-perl cpan Test-Inter 1.13 main/$0.; |
| 15 | |
| 16 | $ti->isscip-perl cpan Test-Inter 1.13 main/is(). ( [ 'a','b' ], [ 'a','b' ], "List test" ); |
| 17 | $ti->isntscip-perl cpan Test-Inter 1.13 main/isnt().( [ 'a','b' ], [ 'a','c' ], "List test" ); |
| 18 | |
| 19 | $ti->isscip-perl cpan Test-Inter 1.13 main/is(). ( { 'a' => 1, 'b' => 2 }, { 'a' => 1, 'b' => 2 }, "Hash test" ); |
| 20 | $ti->isntscip-perl cpan Test-Inter 1.13 main/isnt().( { 'a' => 1, 'b' => 2 }, { 'a' => 1, 'b' => 3 }, "Hash test" ); |
| 21 | |
| 22 | $ti->done_testingscip-perl cpan Test-Inter 1.13 main/done_testing().(); |
| 23 |