You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've observed that when a munit test defined on the last line of a test file fails, the failure message is missing all the details. (Using Dotty 0.27). If the tests are re-ordered, the message is displayed normally.
Using debugger I narrowed down what's happening. This line expects slice array to have length 3, In my case, it has length 2.
So it drops through to the end of method and returns empty String as fail message. That in turn is because if location.line is the last line in lines, then taking a slice to location.line + 1 wont add another line to the slice here
Perhaps this shows up more with dotty's optional braces where the test is on the last line of the file?
The text was updated successfully, but these errors were encountered:
I've observed that when a munit test defined on the last line of a test file fails, the failure message is missing all the details. (Using Dotty 0.27). If the tests are re-ordered, the message is displayed normally.
Using debugger I narrowed down what's happening. This line expects slice array to have length 3, In my case, it has length 2.
So it drops through to the end of method and returns empty String as fail message. That in turn is because if
location.line
is the last line in lines, then taking a slice tolocation.line + 1
wont add another line to the slice herePerhaps this shows up more with dotty's optional braces where the test is on the last line of the file?
The text was updated successfully, but these errors were encountered: