diff options
Diffstat (limited to 'cmds/cmds_test.go')
-rw-r--r-- | cmds/cmds_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmds/cmds_test.go b/cmds/cmds_test.go index d59093a..33d6281 100644 --- a/cmds/cmds_test.go +++ b/cmds/cmds_test.go @@ -56,3 +56,12 @@ func TestUnset(t *testing.T) { t.Errorf("Expected empty string, got %q\n", test) } } + +func TestExitFail(t *testing.T) { + err := Eval("exit abc") + + if err == nil { + t.Errorf("Didn't get error\n") + } + t.Logf("%v\n", err) +} |