aboutsummaryrefslogtreecommitdiffstats
path: root/run_test.sh
blob: a0278d876d8a8a12884c1bbbdfb751d98180813e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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]}