Browse Source

Prevent print[ln]() in exam mode (without correct formatting)

content-update
xpetit 4 years ago
parent
commit
c1551addca
No known key found for this signature in database
GPG Key ID: 4E1F8CF5DFA989D2
  1. 2
      go/tests/entrypoint.sh

2
go/tests/entrypoint.sh

@ -31,7 +31,7 @@ if test "$SKIP_FORMATTING"; then
fi
set -o nounset # TODO: Remove me after this variable is always set in all/tester/main.go
if find . -type f -name '*.go' -exec grep -qE '\tprint(ln)?\(' {} +; then
if find . -type f -name '*.go' -exec grep -qE 'print(ln)?\(' {} +; then
echo "Your Go files cannot use print & println builtins"
exit 1
fi

Loading…
Cancel
Save