From abb6958d4f347a0c4efda5a8ded4e9d512b46582 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 21 Jun 2022 03:20:38 -0500 Subject: [PATCH] More math tests. --- tests/sh.test | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/tests/sh.test b/tests/sh.test index a6f4552c..dae0bf88 100644 --- a/tests/sh.test +++ b/tests/sh.test @@ -237,17 +237,22 @@ testing 'quote' "echo \"'\"" "'\n" "" "" testing "math" 'echo $((1+2))' '3\n' '' '' testing "[oldmath]" 'echo $[1+2]' '3\n' '' '' -testing "math prio" 'echo $((1+2*3**4))' '163\n' '' '' +testing "math basic priority" 'echo $((1+2*3**4))' '163\n' '' '' testing "math paren" 'echo $(((1+2)*3))' '9\n' '' '' testing "math spaces" 'echo $(( ( 1 + 2 ) * 7 - 5 ** 2 ))' '-4\n' '' '' -testing "math2" '((1<2)) 2)) )) isn't redirect" '((1>2))