diff options
Diffstat (limited to 'run_test.sh')
| -rwxr-xr-x | run_test.sh | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/run_test.sh b/run_test.sh new file mode 100755 index 0000000..9ddba76 --- /dev/null +++ b/run_test.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +exercises=( \ +	/#divide/ \ +	/#hello5/ \ +	/#hello_x_times/ \ +	/#string_plus/ \ +	/#join_reverse_array/ \ +	/#array_tack_join/ \ +	/Table/ \ +	/Table2#height_times2/ \ +) + +if [ $# -lt 1 ]; then +	echo "Usage: $0 [number]" +	echo "[number] is the exercise number you want to run tests for." +	exit 1 +fi + +ruby exercises_spec.rb --name ${exercises[$1 - 1]} | 
