ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Compress-LZF/t/02_freeze.t
(Generate patch)

Comparing Compress-LZF/t/02_freeze.t (file contents):
Revision 1.3 by root, Thu Sep 27 20:08:11 2001 UTC vs.
Revision 1.4 by root, Thu Sep 27 20:09:06 2001 UTC

3 print "1..0 # skip Storable module unavailable\n"; 3 print "1..0 # skip Storable module unavailable\n";
4 exit; 4 exit;
5 }; 5 };
6} 6}
7 7
8BEGIN { $| = 1; print "1..1245\n"; } 8BEGIN { $| = 1; print "1..1246\n"; }
9 9
10END {print "not ok 1\n" unless $loaded;} 10END {print "not ok 1\n" unless $loaded;}
11use Compress::LZF ':freeze'; 11use Compress::LZF ':freeze';
12use Storable; 12use Storable;
13$loaded = 1; 13$loaded = 1;
49 chk chr($pfx)."x"; 49 chk chr($pfx)."x";
50 chk chr($pfx)."xxxxxxxxxxxxx"; 50 chk chr($pfx)."xxxxxxxxxxxxx";
51 chk chr($pfx)."abcdefghijklm"; 51 chk chr($pfx)."abcdefghijklm";
52} 52}
53 53
54ok (!eval {sthaw undef; 1}); 54ok (eval {sthaw undef; 1});
55ok (!eval {sthaw "\x07"; 1}); 55ok (!eval {sthaw "\x07"; 1});
56ok (!defined sthaw sfreeze undef); 56ok (!defined sthaw sfreeze undef);
57 57

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines