summaryrefslogtreecommitdiff
path: root/cmds/cmds_test.go
diff options
context:
space:
mode:
authorbpc2003 <wpesfriendnva@gmail.com>2025-05-24 13:32:57 -0400
committerbpc2003 <wpesfriendnva@gmail.com>2025-05-24 13:32:57 -0400
commit1a90e3410a9bdaf606a6124930a0913c07b44c87 (patch)
tree0c48ad326663b876ab44af37e5d2a0b8d95cca57 /cmds/cmds_test.go
parentf8d0e88585226138b7b17e5f74105dd4abe63559 (diff)
Split builtin commands to separate modules
Diffstat (limited to 'cmds/cmds_test.go')
-rw-r--r--cmds/cmds_test.go9
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)
+}