diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-07-17 16:35:24 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-07-17 16:35:24 +0200 |
| commit | 3a2214f5f6bf3d33166a57912c9a8d18fef808c7 (patch) | |
| tree | f25f179d3a481baddf417313021e2443ed03cf29 /suites/preprocess.py | |
| parent | df5bd1352d817d12061f4af5bdaf1bf19211ebc1 (diff) | |
| download | minishell_test-3a2214f5f6bf3d33166a57912c9a8d18fef808c7.tar.gz minishell_test-3a2214f5f6bf3d33166a57912c9a8d18fef808c7.tar.bz2 minishell_test-3a2214f5f6bf3d33166a57912c9a8d18fef808c7.zip | |
Added exit test for atoi parsable input
Diffstat (limited to 'suites/preprocess.py')
| -rw-r--r-- | suites/preprocess.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/suites/preprocess.py b/suites/preprocess.py index 891747e..503f3be 100644 --- a/suites/preprocess.py +++ b/suites/preprocess.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:25:00 by charles #+# #+# # -# Updated: 2020/07/15 18:25:01 by charles ### ########.fr # +# Updated: 2020/07/17 10:53:43 by charles ### ########.fr # # # # ############################################################################ # @@ -67,6 +67,8 @@ def suite_interpolation(test): test("$ECHO $ECHO", exports={"ECHO": "echo"}) test("$A$B bonjour", exports={"A": "ec", "B": "ho"}) + test("$LS", exports={"LS": "ls -l"}, setup="touch a b c") + test("echo $") @suite @@ -146,6 +148,11 @@ def suite_escape(test): test(r"\e\c\h\o bonjour") test(r"echo charles\ ") test(r"echo \ \ jesuis\ \ charles") + test(r"echo \ \ jesuis\; \ charles") + test(r"echo \ \ jesuis\&\& \ charles") + test(r"echo \ \ jesuis\|\| \ charles") + test(r"echo \ \ jesuis \|\| \ charles") + test(r"echo \ \ jesuis\; \ charles") test(r"echo \ \ \ \ \ \ \ \ ") test(r"echo \ \ \ \ \ \ \ \ \ \ \ \ \ \ ") test(r"echo \$PATH") |
