Overeager visited-positions optimizations
[p5sagit/p5-mst-13.2.git] / t / lib / st-06compat.t
index 932dbac..e1a0780 100644 (file)
@@ -1,25 +1,26 @@
 #!./perl
 
-# $Id: compat-0.6.t,v 0.7 2000/08/03 22:04:44 ram Exp $
+# $Id: compat-0.6.t,v 1.0 2000/09/01 19:40:41 ram Exp $
 #
 #  Copyright (c) 1995-2000, Raphael Manfredi
 #  
-#  You may redistribute only under the terms of the Artistic License,
-#  as specified in the README file that comes with the distribution.
+#  You may redistribute only under the same terms as Perl 5, as specified
+#  in the README file that comes with the distribution.
 #
 # $Log: compat-0.6.t,v $
-# Revision 0.7  2000/08/03 22:04:44  ram
-# Baseline for second beta release.
+# Revision 1.0  2000/09/01 19:40:41  ram
+# Baseline for first official release.
 #
 
 BEGIN {
     chdir('t') if -d 't';    
+    @INC = '.'; 
+    push @INC, '../lib';
     require Config; import Config;
     if ($Config{'extensions'} !~ /\bStorable\b/) {
         print "1..0 # Skip: Storable was not built\n";
         exit 0;
     }
-    unshift @INC, '../lib';
     require 'lib/st-dump.pl';
 }
 
@@ -101,6 +102,9 @@ ok 3, ref $y eq 'ROOT';
 
 $Storable::canonical = 1;              # Prevent "used once" warning
 $Storable::canonical = 1;
+# Allow for long double string conversions.
+$y->{num}->[3] += 0;
+$r->{num}->[3] += 0;
 ok 4, nfreeze($y) eq nfreeze($r);
 
 ok 5, $y->ref->{key1} eq 'val1';