| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use strictscip-perl cpan Crypt-Util 0.11 strict/; |
| 4 | use warningsscip-perl cpan Crypt-Util 0.11 warnings/; |
| 5 | |
| 6 | use Test::Morescip-perl cpan Crypt-Util 0.11 Test/More/ 'no_plan'; |
| 7 | |
| 8 | use okscip-perl cpan Crypt-Util 0.11 ok/ 'Crypt::Util' => ( |
| 9 | qw/:crypt default_key exported_instance encode_string/, |
| 10 | defaults => { |
| 11 | key => "moose", |
| 12 | encode => 1, |
| 13 | }, |
| 14 | ); |
| 15 | |
| 16 | isscip-perl cpan Crypt-Util 0.11 main/is().( default_key, "moose", "default key set through defaults" ); |
| 17 | |
| 18 | default_keyscip-perl cpan Crypt-Util 0.11 main/default_key().("bar"); |
| 19 | |
| 20 | isscip-perl cpan Crypt-Util 0.11 main/is().( default_key, "bar", "can be used as a setter, too" ); |
| 21 | |
| 22 | isa_okscip-perl cpan Crypt-Util 0.11 main/isa_ok().( exported_instance, "Crypt::Util" ); |
| 23 | |
| 24 | likescip-perl cpan Crypt-Util 0.11 main/like().( |
| 25 | encode_stringscip-perl cpan Crypt-Util 0.11 main/encode_string().("eagles may soar, but cows don't get sucked into jet engines"), |
| 26 | qr/^[a-f0-9]+$/, |
| 27 | "encode", |
| 28 | ); |
| 29 |