diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-27 20:55:16 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-27 20:55:16 +0100 |
| commit | 348da189c00bdef866d2b597ea0250fc0f0e88dc (patch) | |
| tree | ed35b62d942dfe3449246761ecc0f7bf0a5a4b9f /minishell_test/suites/flow.py | |
| parent | d23b249cdfc2c936b796aca23dfc64c1e31173f6 (diff) | |
| download | minishell_test-348da189c00bdef866d2b597ea0250fc0f0e88dc.tar.gz minishell_test-348da189c00bdef866d2b597ea0250fc0f0e88dc.tar.bz2 minishell_test-348da189c00bdef866d2b597ea0250fc0f0e88dc.zip | |
Added some test for hooks, Refectoring hooks module
Diffstat (limited to 'minishell_test/suites/flow.py')
| -rw-r--r-- | minishell_test/suites/flow.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/minishell_test/suites/flow.py b/minishell_test/suites/flow.py index 2adbb4b..aa6d395 100644 --- a/minishell_test/suites/flow.py +++ b/minishell_test/suites/flow.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:52 by charles #+# #+# # -# Updated: 2021/02/27 12:06:58 by cacharle ### ########.fr # +# Updated: 2021/02/27 20:35:46 by cacharle ### ########.fr # # # # ############################################################################ # @@ -16,7 +16,7 @@ from minishell_test.hooks import ( error_line0, platform_status, discard, - replace_double_semi_colon, + replace_double, error_eof_to_expected_token ) @@ -49,11 +49,11 @@ def suite_end(test): test("; ;", hook=error_line0, hook_status=platform_status(2, 1)) test("; ; ;", hook=error_line0, hook_status=platform_status(2, 1)) test("echo a ; ; echo b", hook=error_line0, hook_status=platform_status(2, 1)) - test(";;", hook=[error_line0, replace_double_semi_colon], hook_status=platform_status(2, 1)) - test(";;;", hook=[error_line0, replace_double_semi_colon], hook_status=platform_status(2, 1)) - test(";;;;;", hook=[error_line0, replace_double_semi_colon], hook_status=platform_status(2, 1)) - test("echo a ;; echo b", hook=[error_line0, replace_double_semi_colon], hook_status=platform_status(2, 1)) - test("echo a ;;;;; echo b", hook=[error_line0, replace_double_semi_colon], hook_status=platform_status(2, 1)) + test(";;", hook=[error_line0, replace_double(";")], hook_status=platform_status(2, 1)) + test(";;;", hook=[error_line0, replace_double(";")], hook_status=platform_status(2, 1)) + test(";;;;;", hook=[error_line0, replace_double(";")], hook_status=platform_status(2, 1)) + test("echo a ;; echo b", hook=[error_line0, replace_double(";")], hook_status=platform_status(2, 1)) + test("echo a ;;;;; echo b", hook=[error_line0, replace_double(";")], hook_status=platform_status(2, 1)) test("ls " + 40 * " ; ls", setup="touch a b c") test("ls " + 80 * " ; ls", setup="touch a b c") test("ls " + 40 * " ; ls" + ";", setup="touch a b c") |
