diff --git a/exercises/practice/house/.meta/example.sh b/exercises/practice/house/.meta/example.sh index da233982..2252b3a4 100644 --- a/exercises/practice/house/.meta/example.sh +++ b/exercises/practice/house/.meta/example.sh @@ -33,9 +33,9 @@ main() { verse() { local -i n=$1 - printf "This is the %s\n" "${items[n]}" + printf "This is the %s" "${items[n]}" for ((; n>0; n--)); do - printf "that %s the %s\n" "${that[n]}" "${items[n-1]}" + printf " that %s the %s" "${that[n]}" "${items[n-1]}" done } diff --git a/exercises/practice/house/.meta/template.j2 b/exercises/practice/house/.meta/template.j2 new file mode 100644 index 00000000..67bf7d7a --- /dev/null +++ b/exercises/practice/house/.meta/template.j2 @@ -0,0 +1,22 @@ +{{ header }} +{% for idx, case in cases %} +@test "{{ case["description"] }}" { + {% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip + expected=$(cat <