File:  [parser3project] / parser3 / tests / 316.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Wed Sep 23 21:35:46 2015 UTC (10 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, HEAD
Added test for bug #1025 (exception handling in non-cached ^cache),
plus for "it does not have logical value" and "$exception.handled value must be either boolean or string 'cache'" exceptions.

$sDir[outputs/316]

^cache[$sDir/test](0){
	test0 ^throw[;test0]
}{
	handled0 $exception.handled(1)
}

^try-catch{^cache[$sDir/test](0){
	test1 ^throw[;test1]
}{
	handled1 $exception.handled[$bool.CLASS]
}}

^cache[$sDir/test](1){
	test
}

^sleep(1.1)

^try-catch{^cache[$sDir/test](1){
	test2 ^throw[;test2]
}{
	handled2 $exception.handled[error]
}}

E-mail: