view tests/expr.test @ 1540:dabe462d290b draft

Bug report from Isaac Dunham: ls -d shouldn't follow command line symlinks without -H or -L (just like ls -l).
author Rob Landley <rob@landley.net>
date Thu, 30 Oct 2014 05:32:54 -0500
parents 8700cbe1cb29
children a97f69a1e406
line wrap: on
line source

#!/bin/bash

[ -f testing.sh ] && . testing.sh

testing "expr integer" "expr 5" "5\n" "" ""
testing "expr integer negative" "expr -5" "-5\n" "" ""
testing "expr string" "expr astring" "astring\n" "" ""
testing "expr 1 + 3" "expr 1 + 3" "4\n" "" ""
testing "expr 5 + 6 * 3" "expr 5 + 6 \* 3" "23\n" "" ""
testing "expr ( 5 + 6 ) * 3" "expr \( 5 + 6 \) \* 3" "33\n" "" ""