File:  [parser3project] / parser3 / tests / 259.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Oct 12 21:51:14 2010 UTC (15 years, 8 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, release_3_4_4, release_3_4_3, release_3_4_2, release_3_4_1, HEAD
to test difference between void and empty string (see ticket #111)

@main[]

$s[]		Empty: $s.CLASS_NAME
$x[$s]		Empty copy: $x.CLASS_NAME
$y[ $s ]	Empty copy with spaces: $y.CLASS_NAME

		Void: $void.CLASS_NAME
$x[$void]	Void copy: $x.CLASS_NAME
$y[ $x ]	Void with spaces: $y.CLASS_NAME
$z[$void.p]	Void property: $z.CLASS_NAME

Void as string: "$x", once again: "$x"
Void as parameter: ^test[$x]
Empty as parameter: ^test[$s]
Empty parameter: ^test[]

No params: ^test2[]
One param: ^test2[one]
Two empty params: ^test2[;]

^test_var[]

@test[a]
$a.CLASS_NAME

@test2[a;b]
$a.CLASS_NAME / $b.CLASS_NAME

@test_var[a][b]
Defined var: $b.CLASS_NAME
Undefined var: $bc.CLASS_NAME

E-mail: