Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
algoidurovic committed Sep 9, 2022
1 parent b9b417a commit 933df40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/transactions/logic/evalStateful_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,7 @@ func TestReturnTypes(t *testing.T) {
case immLabel:
cmd += " done; done: ;"
case immLabels:
cmd += " 2 done1 done2; done1: ; done2: ;"
cmd += " done1 done2; done1: ; done2: ;"
default:
require.Fail(t, "bad immediate", "%s", imm)
}
Expand Down
5 changes: 3 additions & 2 deletions data/transactions/logic/eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5543,15 +5543,16 @@ int 1
switchi start end
err
end:
pop
int 2
==
assert
int 1
`, 8)

// test code fails when target index is out of bounds
testPanics(t, `
int 2
switchi start end
err
start:
end:
int 1
Expand Down

0 comments on commit 933df40

Please sign in to comment.