aboutsummaryrefslogtreecommitdiff
path: root/src/suites/preprocess.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-11 19:38:03 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-11 19:38:03 +0200
commit43be3d890eb37bef2f336bbc64e362a06bebe8ac (patch)
tree11aa908738d4873c5274a36ad24a6f511d2ea1ee /src/suites/preprocess.py
parent7e8af919fad194f69e52a7b7529cebba635d422e (diff)
parent7904cbeb9fea96e695b248c93182834046ecc507 (diff)
downloadminishell_test-43be3d890eb37bef2f336bbc64e362a06bebe8ac.tar.gz
minishell_test-43be3d890eb37bef2f336bbc64e362a06bebe8ac.tar.bz2
minishell_test-43be3d890eb37bef2f336bbc64e362a06bebe8ac.zip
Merge branch 'master' of https://github.com/ggjulio/minishell_test into master
Diffstat (limited to 'src/suites/preprocess.py')
-rw-r--r--src/suites/preprocess.py40
1 files changed, 36 insertions, 4 deletions
diff --git a/src/suites/preprocess.py b/src/suites/preprocess.py
index 429b5ac..6761df9 100644
--- a/src/suites/preprocess.py
+++ b/src/suites/preprocess.py
@@ -1,14 +1,14 @@
-# ############################################################################ #
+# **************************************************************************** #
# #
# ::: :::::::: #
# preprocess.py :+: :+: :+: #
# +:+ +:+ +:+ #
-# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
+# By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:25:00 by charles #+# #+# #
-# Updated: 2020/09/11 18:30:34 by charles ### ########.fr #
+# Updated: 2020/09/11 19:37:11 by charles ### ########.fr #
# #
-# ############################################################################ #
+# **************************************************************************** #
import config
import hooks
@@ -176,6 +176,38 @@ def suite_escape(test):
test(r" \ echo bonjour")
test(r" \ echo bonjour")
+ test(r'/bin/echo " \ "')
+ test(r'/bin/echo " \" "')
+ test(r'/bin/echo " \' "')
+ test(r'/bin/echo " \a "')
+ test(r'/bin/echo " \b "')
+ test(r'/bin/echo " \| "')
+ test(r'/bin/echo " \! "')
+ test(r'/bin/echo " \@ "')
+ test(r'/bin/echo " \$ "')
+ test(r'/bin/echo " \$LESS "')
+ test(r'/bin/echo " \$? "')
+ test(r'/bin/echo " \\ "')
+ test(r'/bin/echo " \\\ "')
+ test(r'/bin/echo " \\\\ "')
+ test(r'/bin/echo " \\\\\ "')
+ test(r'/bin/echo " \\\\\\ "')
+ test(r'/bin/echo " \\\\\\\ "')
+ test(r'/bin/echo " \\\\\\\\ "')
+
+ test(r"/bin/echo ' \ '")
+ test(r"/bin/echo ' \" '")
+ test(r"/bin/echo ' \a '")
+ test(r"/bin/echo ' \b '")
+ test(r"/bin/echo ' \| '")
+ test(r"/bin/echo ' \! '")
+ test(r"/bin/echo ' \@ '")
+ test(r"/bin/echo ' \$ '")
+ test(r"/bin/echo ' $LESS '")
+ test(r"/bin/echo ' \$? '")
+ test(r"/bin/echo ' \\ '")
+ test(r"/bin/echo ' \\\ '")
+
@suite()
def suite_spaces(test):