File:  [parser3project] / parser3 / tests / 330.html
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sat Jan 14 10:43:59 2017 UTC (9 years, 4 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, HEAD
test results updated after ^break[] bugs where fixed (related to bug #1077)

@main[]

1. break in try with catch and finally
^while(1){
	^try{
		$a[aa^break[]bb]
		^throw[;x]
	}{
		catch!
		$exception.handled(1)
		^method[1]
		^method[2]
	}{
		finally!
		^method[1]
		^method[2]
	}
	brake happend.
}
break moment: "$a"

2. break in try with finally
^while(1){
	^try{
		^break[]
	}{}{
		finally!
		^method[1]
		^method[2]
	}
	brake happend.
}

3. break in try with finally and inactive catch
^while(1){
	^try{
		^break[]
	}{
		catch!
	}{
		finally!
		^method[1]
		^method[2]
	}
	brake happend.
}

4. break in catch with finally
^while(1){
	^try{
		^throw[;x]
	}{
		catch!
		$exception.handled(1)
		^break[]
		^method[1]
	}{
		finally!
		^method[1]
		^method[2]
	}
	brake happend.
}

5. continue in catch with break in finally
^while(1){
	^try{
		^throw[;x]
	}{
		catch!
		$exception.handled(1)
		^continue[]
		^method[1]
	}{
		finally!
		^method[1]
		^method[2]
		^break[]
		^method[3]
	}
	brake happend.
}

6. break in nested try with finally inside
^while(1){
	^try{
		^try{
			$a[aa^break[]bb]
			^throw[;x]
		}{}{
			$finally[finally!
			^method[1]
			^method[2]]
		}
	}{
		catch!
		$exception.handled(1)
		^method[1]
		^method[2]
	}
	brake happend.
}
$finally

7. just try exception source check

^try-catch{
^try{
    ^no-such-method[]
}{
}
}

@method[n]
call number $n

E-mail: