diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-11 18:45:32 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-11 18:45:32 +0200 |
| commit | 7e8af919fad194f69e52a7b7529cebba635d422e (patch) | |
| tree | 3e91390bd5c90786d3d65043517851edd1706730 /src/suites | |
| parent | 1ad72842b3dcf10cc89cd682a044f4780ac97e41 (diff) | |
| parent | da03313a87b4798ec60da66f1bbe5ab64ab8a473 (diff) | |
| download | minishell_test-7e8af919fad194f69e52a7b7529cebba635d422e.tar.gz minishell_test-7e8af919fad194f69e52a7b7529cebba635d422e.tar.bz2 minishell_test-7e8af919fad194f69e52a7b7529cebba635d422e.zip | |
Merge branch 'master' of https://github.com/ggjulio/minishell_test into master
Diffstat (limited to 'src/suites')
| -rw-r--r-- | src/suites/builtin.py | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/suites/builtin.py b/src/suites/builtin.py index 3b342e7..95e9ed5 100644 --- a/src/suites/builtin.py +++ b/src/suites/builtin.py @@ -1,14 +1,15 @@ -# ############################################################################ # +# **************************************************************************** # # # # ::: :::::::: # # builtin.py :+: :+: :+: # # +:+ +:+ +:+ # -# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # +# By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:43 by charles #+# #+# # -# Updated: 2020/09/11 18:26:11 by charles ### ########.fr # +# Updated: 2020/09/11 18:45:03 by charles ### ########.fr # +# Updated: 2020/09/11 18:01:27 by juligonz ### ########.fr # # # -# ############################################################################ # +# **************************************************************************** # import os @@ -88,6 +89,15 @@ 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 A B C; echo $A$B$C") + test("export 'AH@'=nop") + test("export \"AH'\"=nop") + test("export 'AH\"'=nop") + test("export 'AH$'=nop") + test("export 'AH!'=nop") + test("export 'AH|'=nop") + test("export 'AH;'=nop") + test("export 'AH&'=nop") + test("export 'AH\\'=nop") test("export $TEST", exports={"TEST": "A=a"}) test(r"export BONJOUR\\JESUIS") test(r"export BONJOUR\'JESUIS") @@ -212,6 +222,16 @@ def suite_unset(test): exports={"A": "a", "B": "b", "C": "c"}) test("unset A", exports={"A": "a", "B": "b", "C": "c"}) + test("unset 'AH@'=nop") + test("unset \"AH'\"=nop") + test("unset 'AH\"'=nop") + test("unset 'AH$'=nop") + test("unset 'AH!'=nop") + test("unset 'AH|'=nop") + test("unset 'AH;'=nop") + test("unset 'AH&'=nop") + test("unset 'AH\\'=nop") + @suite() def suite_pwd(test): test("pwd") |
