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

Revision 1078, 1.2 KB (checked in by shawnw, 17 months ago)

#7443: regression test rewrite

Line 
1run tests:
2test('reswitch.1', $god, 'think reswitch(test STRING,t,1,0)', '1');
3test('reswitch.2', $god, 'think reswitch(test STRING,t,1,e,2,0)', '1');
4test('reswitch.3', $god, 'think reswitch(test STRING,E,1,0)', '0');
5test('reswitch.4', $god, 'think reswitch(test STRING,.\{4\}\\\s\[A-Z\]\{6\},9,t,1,E,2,0)', '9');
6
7test('reswitch.5', $god, 'think reswitchall(test STRING,t,1,0)', '1');
8test('reswitch.6', $god, 'think reswitchall(test STRING,t,1,e,2,0)', '12');
9test('reswitch.7', $god, 'think reswitchall(test STRING,E,1,0)', '0');
10test('reswitch.8', $god, 'think reswitchall(test STRING,.\{4\}\\\s\[A-Z\]\{6\},9,t,1,E,2,0)', '91');
11
12test('reswitch.9', $god, 'think reswitchi(test STRING,t,1,0)', '1');
13test('reswitch.10', $god, 'think reswitchi(test STRING,t,1,e,2,0)', '1');
14test('reswitch.11', $god, 'think reswitchi(test STRING,E,1,0)', '1');
15test('reswitch.12', $god, 'think reswitchi(test STRING,.\{4\}\\\s\[A-Z\]\{6\},9,t,1,E,2,0)', '9');
16
17test('reswitch.13', $god, 'think reswitchalli(test STRING,t,1,0)', '1');
18test('reswitch.14', $god, 'think reswitchalli(test STRING,t,1,e,2,0)', '12');
19test('reswitch.15', $god, 'think reswitchalli(test STRING,E,1,0)', '1');
20test('reswitch.16', $god, 'think reswitchalli(test STRING,.\{4\}\\\s\[A-Z\]\{6\},9,t,1,E,2,0)', '912');
Note: See TracBrowser for help on using the browser.