W3TPL/test suite

From Woozle Writes Code
< W3TPL
Revision as of 11:24, 10 October 2008 by Woozle (talk | contribs) (New page: ==LET== <xml><hide> <let name=thing1 val="stuff" /> <let name=thing2>other stuff</let> <let name=thing3>two</let> <let name=thing3 append> parts</let> <let name=thing4 copy=thing2 /> <let ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

LET

<xml><hide> <let name=thing1 val="stuff" /> <let name=thing2>other stuff</let> <let name=thing3>two</let> <let name=thing3 append> parts</let> <let name=thing4 copy=thing2 /> <let name=thing5 copy=thing2 /> <let name=thing5 append> </let> <let name=thing5 copy=thing3 append /> <let name=thing6[1] val="one" /> <let name=thing6 index=2 val="two" /> <let name=thing6[3] val="three" /> <let name=idx val=4 /> <let name=thing6[$idx] val="four" /></hide>

  • Test 1 - should be "stuff": <get name=thing1 />
  • Test 2 - should be "other stuff": <get name=thing2 />
  • Test 3 - should be "two parts": <get name=thing3 />
  • Test 4 - should be "other stuff": <get name=thing4 />
  • Test 5 - should be "other stuff two parts": <get name=thing5 />
  • Test 6 - should be "one": <get name=thing6[1] />
  • Test 7 - should be "two": <get name=thing6[2] />
  • Test 8 - should be "three": <get name=thing6 index=3 />
  • Test 9 - should be "four": <get name=thing6[4] /></xml>