Some IllegalArgumentException messages in error_dictionary.clj
incorrectly assume that a sequence was passed
#69
Labels
bug
Something isn't working
good first issue
Good for newcomers
needs exploration
Need to find more specific examples and narrow down the issue
Certain functions that expect an integer argument and are not spec'd by Babel get caught by the
:illegal-arg-must-be-int-seq
error in ourerror_dictionary.clj
. The message for this is misleading in cases where a sequence is not passed.To reproduce/test:
(even?)
and(odd?)
are currently underspec'd, passing a double to them instead of an int will produce these errors:Using a spec'd predicate in a higher-level spec seemingly "bypasses" the specs on the predicate function due to being evaluated differently from user code. This is also an unavoidable case, i.e. a cause for why these messages need to be improved even if the specs are fixed:
In
corefns.clj
:TODO: Find examples of the other one:
The text was updated successfully, but these errors were encountered: