diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-15 17:54:02 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-15 18:36:30 +0200 |
| commit | 12f385695e13bbb0dd65062fa371bd914acd7862 (patch) | |
| tree | 0d039e9308756049d3a3dca232079ac3c75726a4 /src/suites/preprocess.py | |
| parent | 572c2e7218a21a6fa711d9b654a8f74163a77e69 (diff) | |
| download | minishell_test-12f385695e13bbb0dd65062fa371bd914acd7862.tar.gz minishell_test-12f385695e13bbb0dd65062fa371bd914acd7862.tar.bz2 minishell_test-12f385695e13bbb0dd65062fa371bd914acd7862.zip | |
Added more parenthesis, pipe, quote tests
Diffstat (limited to 'src/suites/preprocess.py')
| -rw-r--r-- | src/suites/preprocess.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/suites/preprocess.py b/src/suites/preprocess.py index 27a27a4..bf88c49 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/09/14 15:15:53 by charles ### ########.fr # +# Updated: 2020/09/15 18:34:34 by charles ### ########.fr # # # # **************************************************************************** # @@ -62,9 +62,11 @@ def suite_quote(test): test("echo '''''''''''''''''''''''''''''''''''''''''''", hook=hooks.error_line0) test('echo """""""""""""""""""""""""""""""""""""""""""', hook=hooks.error_line0) test("echo 'AH\\'") - test('echo "AH\\"') - test("echo '\\''") + test('echo "AH\\"', hook=hooks.error_line0) + test('echo "AH\\""') + test("echo '\\''", hook=hooks.error_line0) test('echo "\\""') + test('echo "\\\\""', hook=hooks.error_line0) @suite() @@ -185,7 +187,6 @@ def suite_escape(test): test(r" \ echo bonjour") test(r" \ echo bonjour") test(r" \ echo bonjour") - test(r'/bin/echo " \ "') test(r'/bin/echo " \" "') test(r'/bin/echo " \' "') @@ -204,7 +205,6 @@ def suite_escape(test): 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 '") @@ -217,6 +217,8 @@ def suite_escape(test): test(r"/bin/echo ' \$? '") test(r"/bin/echo ' \\ '") test(r"/bin/echo ' \\\ '") + test("echo \\") + test("echo \"\\\"\"'bonjour'") @suite() |
