Skip to content

Commit 975bbcd

Browse files
committed
Remove redundant loc - sorry! last commit to this PR
1 parent 7dd4626 commit 975bbcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/generate_tests

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ function digest_template() {
1111
echo "$template" | sed 's/${\([^}]*\)\}\$/$(echo $case | jq -r '\''.\1'\'')/g'
1212
}
1313

14+
message "info" "Generating tests.."
1415
canonical_json=$(cat canonical_data.json)
1516
SLUG=$(echo "$canonical_json" | jq '.exercise')
1617
# shellcheck disable=SC2001
1718
# Remove double quotes
1819
SLUG=$(echo "$SLUG" | sed 's/"//g')
1920
EXERCISE_DIR="exercises/practice/$SLUG"
2021
TEST_FILE="$EXERCISE_DIR/tests/$SLUG.rs"
21-
rm "$TEST_FILE"
2222

2323
cat <<EOT >"$TEST_FILE"
2424
use $(dash_to_underscore "$SLUG")::*;
@@ -46,3 +46,5 @@ jq -c '.[]' <<<"$cases" | while read -r case; do
4646
done
4747

4848
rustfmt "$TEST_FILE"
49+
50+
message "success" "Generated tests successfully! Check out ${TEST_FILE}"

0 commit comments

Comments
 (0)