testdecompose.pl
pennmush-1.8.3p3/test/testdecompose.pl · 554 B
From the archive pennmush-1.8.3p3.tar.gz
Download the archive « Back to the archive contents
use PennMUSH;
use MUSHConnection;
use TestHarness;
$mush = PennMUSH->new();
$god = $mush->loginGod();
test('decompose.1', $god, 'think decompose([ansi(hr,b[ansi(f,la)]h)])', '\[ansi\(hr,b\[ansi\(f,la\)\]\)\]\[ansi\(hr,h\)\]');
test('decompose.2', $god, 'think decompose(a\ \ \ \ b)', 'a %b %bb');
test('decompose.3', $god, 'think decompose(s(tab%treturn%r))', 'tab%treturn%r');
test('decompose.4', $god, 'think decompose(before(ansi(h,x),x)hello)', '\[ansi\(h,hello\)\]');
test('decompose.5', $god, 'think decompose([before(ansi(h,blah),\[)])', '!.');