aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/suites/builtin.py3
-rw-r--r--src/suites/cmd.py6
2 files changed, 7 insertions, 2 deletions
diff --git a/src/suites/builtin.py b/src/suites/builtin.py
index ba302f6..523ffe5 100644
--- a/src/suites/builtin.py
+++ b/src/suites/builtin.py
@@ -6,7 +6,7 @@
# By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:24:43 by charles #+# #+# #
-# Updated: 2020/10/15 09:38:07 by cacharle ### ########.fr #
+# Updated: 2020/10/15 10:41:55 by cacharle ### ########.fr #
# Updated: 2020/09/11 18:01:27 by juligonz ### ########.fr #
# #
# **************************************************************************** #
@@ -57,6 +57,7 @@ def suite_echo(test):
test("eCHo bonjour", exports={"PATH": "/bin:/usr/bin"})
test("EcHo bonjour", exports={"PATH": "/bin:/usr/bin"})
test("eChO bonjour", exports={"PATH": "/bin:/usr/bin"})
+ test("eChO -e 'bonjo\\nur'", exports={"PATH": "/bin:/usr/bin"})
@suite()
diff --git a/src/suites/cmd.py b/src/suites/cmd.py
index b5b770f..19dd698 100644
--- a/src/suites/cmd.py
+++ b/src/suites/cmd.py
@@ -6,7 +6,7 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 15:11:46 by charles #+# #+# #
-# Updated: 2020/10/15 09:25:04 by cacharle ### ########.fr #
+# Updated: 2020/10/15 10:40:11 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -84,6 +84,10 @@ def suite_redirection(test):
test("cat << << bar", setup="echo bonjour > bar", hook=hooks.error_line0, hook_status=hooks.platform_status(1, 2))
test("cat <<<<< bar", setup="echo bonjour > bar", hook=hooks.error_line0, hook_status=hooks.platform_status(1, 2))
test("cat < doesnotexist")
+ test("echo bonjour >> a", setup="echo a > a", files=["a"])
+ test("echo bonjour >> a >> a", setup="echo a > a", files=["a"])
+ test("echo bonjour > a", setup="echo a > a", files=["a"])
+ test("echo bonjour > a >> a", setup="echo a > a", files=["a"])
@suite()