Skip to content
Snippets Groups Projects
Commit 7965a9cf authored by Chris Smith's avatar Chris Smith
Browse files

add test case for FS#1609 patch (hex numbers shouldn't match multiply entity)

darcs-hash:20090308041259-f07c6-dcba687b160e30b2dbcfa02d4526c0a3adb4e324.gz
parent 445e8084
No related branches found
No related tags found
No related merge requests found
......@@ -266,6 +266,22 @@ class TestOfDoku_Parser_Replacements extends TestOfDoku_Parser {
$this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls);
}
function testMultiplyEntityHex() {
// the multiply entity pattern should not match hex numbers, eg. 0x123
$this->P->addMode('multiplyentity',new Doku_Parser_Mode_MultiplyEntity());
$this->P->parse('Foo 0x123 Bar');
$calls = array (
array('document_start',array()),
array('p_open',array()),
array('cdata',array("\n".'Foo 0x123 Bar'."\n")),
array('p_close',array()),
array('document_end',array()),
);
$this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls);
}
function testHR() {
$this->P->addMode('hr',new Doku_Parser_Mode_HR());
$this->P->parse("Foo \n ---- \n Bar");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment