aboutsummaryrefslogtreecommitdiff
path: root/suites/builtin.py
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-07-17 16:35:24 +0200
committerCharles <sircharlesaze@gmail.com>2020-07-17 16:35:24 +0200
commit3a2214f5f6bf3d33166a57912c9a8d18fef808c7 (patch)
treef25f179d3a481baddf417313021e2443ed03cf29 /suites/builtin.py
parentdf5bd1352d817d12061f4af5bdaf1bf19211ebc1 (diff)
downloadminishell_test-3a2214f5f6bf3d33166a57912c9a8d18fef808c7.tar.gz
minishell_test-3a2214f5f6bf3d33166a57912c9a8d18fef808c7.tar.bz2
minishell_test-3a2214f5f6bf3d33166a57912c9a8d18fef808c7.zip
Added exit test for atoi parsable input
Diffstat (limited to 'suites/builtin.py')
-rw-r--r--suites/builtin.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/suites/builtin.py b/suites/builtin.py
index 22c3683..6828200 100644
--- a/suites/builtin.py
+++ b/suites/builtin.py
@@ -6,7 +6,7 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:24:43 by charles #+# #+# #
-# Updated: 2020/07/15 18:24:44 by charles ### ########.fr #
+# Updated: 2020/07/17 13:42:15 by charles ### ########.fr #
# #
# ############################################################################ #
@@ -84,6 +84,7 @@ def suite_export(test):
test("export 'asdf ' B ' asdf asdf asd f' ' asdf ' '' 'asdf ' C; echo $A$B$C")
test("export A 'asdf ' B ' asdf asdf asd f' ' asdf ' '' 'asdf '; echo $A$B$C")
+ test("export $TEST", exports={"TEST": "A=a"})
@suite
def suite_cd(test):
@@ -155,6 +156,15 @@ def suite_exit(test):
test("exit 1")
test("exit 2")
test("exit 3")
+ test("exit ' 3'")
+ test("exit '\t3'")
+ test("exit '\t\f\r 3'")
+ test("exit '3 '")
+ test("exit '3\t'")
+ test("exit '3\r'")
+ test("exit '3\t\f\r '")
+ test("exit '3 a'")
+ test("exit '3\t\t\ta'")
test("exit 0")
test("exit -0")
test("exit -1")