root/1.8.3/tags/p5rc1/test/testrand.pl

Revision 1078, 392 bytes (checked in by shawnw, 17 months ago)

#7443: regression test rewrite

Line 
1run tests:
2test('rand.1', $god, 'think rand(-1)', '#-1');
3test('rand.2', $god, 'think rand(0)', '#-1');
4test('rand.3', $god, 'think rand(1)', '0');
5test('rand.4', $god, 'think rand(10)', '^\d\s*$');
6test('rand.5', $god, 'think rand(0,0)', '0');
7test('rand.6', $god, 'think rand(1,1)', '1');
8test('rand.7', $god, 'think rand(2,1)', '#-1');
9test('rand.8', $god, 'think rand(0,9)', '^\d\s*$');
Note: See TracBrowser for help on using the browser.