From 310ddc2208bd40e3950ebf89efe62f747be8277f Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 15 Oct 2020 09:36:10 +0200 Subject: Added case insensitive PATH search tests --- src/suites/builtin.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/suites/builtin.py') diff --git a/src/suites/builtin.py b/src/suites/builtin.py index 1723b13..e6d2ffe 100644 --- a/src/suites/builtin.py +++ b/src/suites/builtin.py @@ -6,7 +6,7 @@ # By: juligonz +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:43 by charles #+# #+# # -# Updated: 2020/10/09 20:28:36 by charles ### ########.fr # +# Updated: 2020/10/15 08:49:44 by cacharle ### ########.fr # # Updated: 2020/09/11 18:01:27 by juligonz ### ########.fr # # # # **************************************************************************** # @@ -41,6 +41,22 @@ def suite_echo(test): test("echo -n a '' b '' c '' d") test('echo -n a "" b "" c "" d') test("echo '' '' ''") + test("Echo bonjour") + test("eCho bonjour") + test("ecHo bonjour") + test("echO bonjour") + test("EchO bonjour") + test("eCHo bonjour") + test("EcHo bonjour") + test("eChO bonjour") + 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 bonjour", exports={"PATH": "/bin:/usr/bin"}) + 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 bonjour", exports={"PATH": "/bin:/usr/bin"}) @suite() -- cgit