1use strict; 2use warnings; 3use t::TestTextTrac; 4 5run_tests; 6 7__DATA__ 8 9### macro with no arguments 10--- input 11[[HelloWorld]] 12--- expected 13<p> 14Hello World, args = 15</p> 16 17### macro with quoted arguments 18--- input 19[[HelloWorld( "one, one", "two, two", 'three, three' )]] 20--- expected 21<p> 22Hello World, args = one, one, two, two, three, three 23</p> 24 25### macro with embedded terminators 26--- input 27[[HelloWorld( func(arg), ]] )]] 28--- expected 29<p> 30Hello World, args = func(arg), ]] 31</p> 32 33### macros with extra ws aren't valid 34--- input 35[[ HelloWorld(foo) ]] 36--- expected 37<p> 38[[ HelloWorld(foo) ]] 39</p> 40 41### unknown macro doesn't die 42--- input 43[[TheUnknownMacro]] 44--- expected 45<p> 46[[TheUnknownMacro]] 47</p> 48