--- parser3/tests/270.html 2011/11/11 06:15:41 1.1 +++ parser3/tests/270.html 2012/05/30 06:38:27 1.3 @@ -1,10 +1,25 @@ @main[] -$dir[/tests/270_dir] -^file:find[$dir/subdir/270.txt]
-^file:find[$dir/subdir/270.txt]{file not found}
-^file:find[$dir/270.txt]
-^file:find[$dir/270.txt]{file not found}
-^file:find[$dir/270.html]
-^file:find[$dir/270.html]{file not found}
-^file:find[$dir/not-exist]
-^file:find[$dir/not-exist]{file not found}
+$dir[/_/270_dir] + +^do[$dir///subdir/270.txt]{file not found (error)} +^do[$dir/270.txt]{file not found (error)} +^do[$dir/subdir/zzz/270.html]{file not found (error)} +^do[$dir/not-exist] +^do[$dir///not-exist]{file not found (OK)} +^do[/not-exist]{file not found (OK)} + +^do[/Makefile]{file not found (error)} +^do[Makefile]{file not found (error)} + +^do[]{file not found (OK)} +^do[/]{file not found (OK)} +^do[///]{file not found (OK)} +^do[$dir/subdir//z/]{file not found (OK)} + + +@do[sFileSpec;*hParams] +^if($hParams){ + $result[^file:find[$sFileSpec]{$hParams.0}
] +}{ + $result[^file:find[$sFileSpec]
] +}