Include types of values in assertion failures #178
Labels
feature-request
Any request for a new feature of the language. Includes both syntax and library features.
stdlib
Any issue relating to the standard library (Myst code) of Myst.
I recently ran into what I thought was a bug when I saw this error from a simple spec:
The spec in question looks like this:
I was confused at first because the values look the same in the error output. Looking at the code, it's (somewhat) obvious that the failure comes from the fact that the types of the values do not match, even though the string representation of the values do (one's a String, the other's an Integer).
To mitigate this, I'd like to see the type of the value added to the assertion failure output. With that, I would expect it to look something like:
The text was updated successfully, but these errors were encountered: