Add 'back' portion of catch test

This commit is contained in:
lash
2023-04-01 09:06:08 +01:00
parent 22d37de779
commit 832228ba11

View File

@@ -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)
}
}