diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-25 21:37:49 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-25 21:37:49 +0100 |
| commit | c2d6bf590ee30b195bf8f64364ca9d898b35736f (patch) | |
| tree | 7da77a3c507187bd400ece0e3adc1d9cbd09c649 /src/suites/preprocess.py | |
| parent | caa8b47a9fbc8a2b5f1b6a105130699905243e8f (diff) | |
| download | minishell_test-c2d6bf590ee30b195bf8f64364ca9d898b35736f.tar.gz minishell_test-c2d6bf590ee30b195bf8f64364ca9d898b35736f.tar.bz2 minishell_test-c2d6bf590ee30b195bf8f64364ca9d898b35736f.zip | |
#6 Added special characters field split and should_not_be hook, to avoid error message
Diffstat (limited to 'src/suites/preprocess.py')
| -rw-r--r-- | src/suites/preprocess.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/suites/preprocess.py b/src/suites/preprocess.py index 89130ec..3e038a8 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/09 12:39:07 by cacharle ### ########.fr # +# Updated: 2020/11/25 21:35:32 by charles ### ########.fr # # # # **************************************************************************** # @@ -236,6 +236,11 @@ def suite_spaces(test): test("\t\t\t\t\t\techo\tfoo") test("echo\tfoo\t\t\t\t\t\t") test("\t\t\t\techo\t\t\t\tfoo\t\t\t\t") + test("\fecho\ffoo", hook=hooks.should_not_be("foo\n")) + test("\necho\nfoo", hook=hooks.should_not_be("foo\n")) + test("\recho\rfoo", hook=hooks.should_not_be("foo\n")) + test("\vecho\vfoo", hook=hooks.should_not_be("foo\n")) + test("\t\r\v\fecho\v\t\r\vfoo", hook=hooks.should_not_be("foo\n")) test("") test(" ") test("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t") |
