go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit 832228ba11f612037d119750397c7552af8ea15d
parent 22d37de779a79b0e26e9dc7b8c4b22abee19f5bf
Author: lash <dev@holbrook.no>
Date:   Sat,  1 Apr 2023 09:06:08 +0100

Add 'back' portion of catch test

Diffstat:
Mgo/vm/vm_test.go | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/go/vm/vm_test.go b/go/vm/vm_test.go @@ -370,4 +370,14 @@ func TestCatchAndBack(t *testing.T) { if r != "bar" { t.Errorf("expected where-symbol 'bar', got %v", r) } + + st.Up() + r = st.Where() + if r != "foo" { + t.Errorf("expected where-symbol 'foo', got %v", r) + } + err = st.Map("one") + if err != nil { + t.Error(err) + } }