Skip to content

Commit

Permalink
update add-exercise and generate_tests scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
glennj committed Jun 28, 2024
1 parent a837dc9 commit bcc1755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/add-exercise
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jq --arg slug "${slug}" \
' "${conf}" > "${conf}.tmp" \
&& mv "${conf}.tmp" "${conf}"

cp exercises/practice/hello-world/bats-extra.bash exercises/practice/"${slug}"
cp -pt exercises/practice/"${slug}" lib/bats-*.bash

./bin/generate_tests "${slug}"

Expand Down
1 change: 1 addition & 0 deletions bin/generate_tests
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ writeTestFile() {
#!/usr/bin/env bats
# generated on $(date --utc "+%FT%TZ")
load bats-extra
load bats-jq
END_PREAMBLE

jq -r --arg slug "$slug" \
Expand Down

0 comments on commit bcc1755

Please sign in to comment.