aboutsummaryrefslogtreecommitdiff
path: root/src/suites/preprocess.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-08 08:43:12 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-08 08:43:12 +0200
commitc20cbfea9bb878fc88e76f0ba773ded5a7b149ca (patch)
treea49139c7f4a85cfab07df1d41be15a0275010fe6 /src/suites/preprocess.py
parent0cf5d76836a6499de4e30c4066d8709099ff6331 (diff)
downloadminishell_test-c20cbfea9bb878fc88e76f0ba773ded5a7b149ca.tar.gz
minishell_test-c20cbfea9bb878fc88e76f0ba773ded5a7b149ca.tar.bz2
minishell_test-c20cbfea9bb878fc88e76f0ba773ded5a7b149ca.zip
Added suite description for -l option
Diffstat (limited to 'src/suites/preprocess.py')
-rw-r--r--src/suites/preprocess.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/suites/preprocess.py b/src/suites/preprocess.py
index 506cb32..3b70666 100644
--- a/src/suites/preprocess.py
+++ b/src/suites/preprocess.py
@@ -6,7 +6,7 @@
# By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:25:00 by charles #+# #+# #
-# Updated: 2020/10/07 08:27:57 by charles ### ########.fr #
+# Updated: 2020/10/08 08:37:19 by cacharle ### ########.fr #
# #
# **************************************************************************** #
@@ -17,6 +17,7 @@ from suite import suite
@suite()
def suite_quote(test):
+ """ double and single quote test, escape in quotes, quote missmatch """
test("'echo' 'bonjour'")
test("'echo' 'je' 'suis' 'charles'")
test('"echo" "bonjour"')
@@ -71,6 +72,7 @@ def suite_quote(test):
@suite()
def suite_interpolation(test):
+ """environment variable interpolation tests, valid name, escape in variable"""
test("echo $TEST", exports={"TEST": "bonjour"})
test("echo $TES", exports={"TEST": "bonjour"})
test("echo $TEST_", exports={"TEST": "bonjour"})
@@ -168,6 +170,7 @@ def suite_interpolation(test):
@suite()
def suite_escape(test):
+ """ escape test, in command, with space, before quote """
test(r"echo \a")
test(r"\e\c\h\o bonjour")
test(r"echo charles\ ")
@@ -223,6 +226,7 @@ def suite_escape(test):
@suite()
def suite_spaces(test):
+ """ field splitting with spaces and tabs """
test("echo foo")
test("echo foo")
test(" echo foo")