pyret-lang icon indicating copy to clipboard operation
pyret-lang copied to clipboard

Enhance `is` tests on failure to check for `is=~`

Open blerner opened this issue 3 years ago • 0 comments

Suppose you wrote

check:
  [raw-array: 1] is [raw-array: 1]
end

The test will fail because raw arrays are mutable. We should consider rerunning the test in this case using equal-now, and if that succeeds, we should throw a customized test-failure message saying "Your test failed because of mutable data, but would have succeeded using the is=~ test operator."

blerner avatar Jun 22 '22 18:06 blerner