Commits

patrickl  committed f6172d1

[svn r523] ok

  • Participants
  • Parent commits 0ed5c07

Comments (0)

Files changed (1)

File t/04_prelude.sh

 source ../bashkell
 
 
-plan_tests 8
+plan_tests 12
 
 
 is "`sum $ 1 2 3 4 5`" 15 \
 okx "[ $? == 0 ]"
 rc=`or $ 1 2 1`
 okx "[ $rc != 0 ]"
+
+all -r '\x -> [[ $x -gt 1 ]]' $ 2 3 4
+okx "[ $? == 0 ]"
+rc=`all '\x -> [[ $x -gt 1 ]]' $ 2 3 0`
+okx "[ $rc != 0 ]"
+
+any -r '\x -> [[ $x -gt 1 ]]' $ 2 3 4
+okx "[ $? == 0 ]"
+rc=`any '\x -> [[ $x -gt 1 ]]' $ 0 0 0`
+okx "[ $rc != 0 ]"