Browse Source

test(division): fix tests

DEV-4199-make-test-environment-compatible-with-python-exercises
eslopfer 1 year ago
parent
commit
d50afde56a
  1. 14
      sh/tests/division_test.sh

14
sh/tests/division_test.sh

@ -14,10 +14,10 @@ challenge() {
diff <(echo "$submitted") <(echo "$expected")
}
challenge "10 2" "5"
challenge "4 2" "2"
challenge "0.5 0.5" "1"
challenge "0.5" "Error: two numbers must be provided"
challenge "foo bar" "Error: both arguments must be numeric"
challenge "1 0" "Error: division by zero is not allowed"
challenge "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 2" "5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
challenge "10" "2"
challenge "4" "2"
challenge "0.5" "0.5"
challenge "0.5"
challenge "foo" "bar"
challenge "1" "0"
challenge "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" "2"

Loading…
Cancel
Save