Add 'back' portion of catch test

This commit is contained in:
lash 2023-04-01 09:06:08 +01:00
parent 22d37de779
commit 832228ba11
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -370,4 +370,14 @@ func TestCatchAndBack(t *testing.T) {
if r != "bar" { if r != "bar" {
t.Errorf("expected where-symbol 'bar', got %v", r) 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)
}
} }