Commits

Anonymous committed 4a489ef

[svn r524] ok

Comments (0)

Files changed (2)

t/10_errors.sh

-#!/bin/bash 
-
-source ./tap-functions
-source ../bashkell
-
-plan_tests 3
-
-err=`echo 1 | map '\a b -> echo $a $b' 2>&1`
-like "$err" 'lambda syntax error' "wrong number or arguments to lambda"
-err=`echo 1 | map '\ -> echo' 2>&1`
-like "$err" 'lambda syntax error' "no arguments to lambda"
-err=`echo 1 | map '\ - -> echo' 2>&1`
-like "$err" 'lambda syntax error' "invalid lambda"
-
+#!/bin/bash 
+
+source ./tap-functions
+source ../bashkell
+
+plan_tests 3
+
+err=`echo 1 | map '\a b -> echo $a $b' 2>&1`
+like "$err" 'lambda syntax error' "wrong number or arguments to lambda"
+err=`echo 1 | map '\ -> echo' 2>&1`
+like "$err" 'lambda syntax error' "no arguments to lambda"
+err=`echo 1 | map '\ - -> echo' 2>&1`
+like "$err" 'lambda syntax error' "invalid lambda"
+