root/1.8.3/tags/p6/test/testinsert.pl

Revision 523, 1.0 KB (checked in by pennmush, 2 years ago)

PennMUSH 1.8.1p6 Archival

Line 
1use PennMUSH;
2use MUSHConnection;
3use TestHarness;
4
5$mush = PennMUSH->new();
6$god = $mush->loginGod();
7
8test('insert.1', $god, 'think insert(a b c,0,X)', 'a b c');
9test('insert.2', $god, 'think insert(a b c,1,X)', 'X a b c');
10test('insert.3', $god, 'think insert(a b c,2,X)', 'a X b c');
11test('insert.4', $god, 'think insert(a b c,3,X)', 'a b X c');
12test('insert.5', $god, 'think insert(a b c,4,X)', 'a b c');
13test('insert.6', $god, 'think insert(a b c,-1,X)', 'a b c X');
14test('insert.7', $god, 'think insert(a b c,-2,X)', 'a b X c');
15test('insert.8', $god, 'think insert(a b c,-3,X)', 'a X b c');
16test('insert.9', $god, 'think insert(a b c,-4,X)', 'a b c');
17test('insert.10', $god, 'think insert(a|b|c,0,|)', 'a|b|c');
18test('insert.11', $god, 'think insert(a|b|c,1,|)', 'X|a|b|c');
19test('insert.12', $god, 'think insert(a|b|c,-1,|)', 'a|b|c|X');
20test('insert.13', $god, 'think insert(a|b|c,2,|)', 'a|X|b|c');
21test('insert.14', $god, 'think insert(a|b|c,-2,|)', 'a|b|X|c');
Note: See TracBrowser for help on using the browser.