aboutsummaryrefslogtreecommitdiffstats
path: root/run_test.sh
blob: 9ddba76f786d31ed15b12fad4e0454ea209632c1 (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]}