File:  [parser3project] / parser3 / tests / 461.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Fri Oct 2 20:23:15 2026 UTC (3 weeks ago) by moko
Branches: MAIN
CVS tags: HEAD
test for ^file:list[ $.exception(true) ] feature added (related to feature #1084)

# when ^file:list fails: an empty table, or with $.exception(true) an error (feature #1084)
# only the exception type is shown: the comment is platform and machine dependent
@main[]
1. missing, by default: ^rows{^file:list[404]}
2. missing, exception(false): ^rows{^file:list[404][ $.exception(false) ]}
3. missing, exception(true): ^rows{^file:list[404][ $.exception(true) ]}
4. missing, with a filter and exception(true): ^rows{^file:list[404][ $.filter[\.p^$] $.exception(true) ]}
5. a file, exception(true): ^rows{^file:list[461.html][ $.exception(true) ]}
6. existing, exception(true): ^rows{^file:list[366_dir][ $.exception(true) ]}
7. a uri, by default, no directory as with ^^file:delete: ^rows{^file:list[http://example.com/]}
8. a uri, exception(true): ^rows{^file:list[http://example.com/][ $.exception(true) ]}

@rows[code][t]
^try{
	$t[$code]
	$result[rows ^t.count[]]
}{
	$exception.handled(true)
	$result[exception $exception.type]
}

E-mail: