Remove the tests that assume something about
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 3 Sep 2001 18:54:51 +0000 (18:54 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 3 Sep 2001 18:54:51 +0000 (18:54 +0000)
calling srand() without arguments multiple times.

p4raw-id: //depot/perl@11850

t/op/srand.t

index b9b8ebc..5aadaa8 100644 (file)
@@ -3,7 +3,7 @@
 # Test srand.
 
 use strict;
-use Test::More tests => 5;
+use Test::More tests => 3;
 
 # Generate a load of random numbers.
 # int() avoids possible floating point error.
@@ -31,31 +31,6 @@ ok( !eq_array(\@first_run, \@second_run),
                                  'srand(), different arg, different rands' );
 
 
-# Check that srand() with no args provides different seeds.
-srand();
-@first_run  = mk_rand;
-
-srand();
-@second_run = mk_rand;
-
-ok( !eq_array(\@first_run, \@second_run), 'srand(), no arg, different rands');
-
-
-# Check that srand() isn't effected by $_
-{
-    local $_ = 42;
-    srand();
-    @first_run  = mk_rand;
-
-    srand();
-    @second_run = mk_rand;
-
-    ok( !eq_array(\@first_run, \@second_run), 
-                       'srand(), no arg, not effected by $_');
-}
-
-
-
 # This test checks whether Perl called srand for you.
 @first_run  = `$^X -le "print int rand 100 for 1..100"`;
 @second_run = `$^X -le "print int rand 100 for 1..100"`;