PennMUSH Community

root/1.8.3/trunk/test/testinsert.pl

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

PennMUSH 1.8.1p6 Archival

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