k9 icon indicating copy to clipboard operation
k9 copied to clipboard

codeframe in assertion failures

Open aaronabramov opened this issue 4 years ago • 1 comments

we have line! and column! macros. we can technically take out a pice of code with some context around it where assertion failed and add it to the error message e.g.

Assertion Failure!

43 | fn do something() {
44 |   let stuff = 1
45 |   assert_equal!(stuff, 2);
46 |  }

aaronabramov avatar Jun 19 '20 04:06 aaronabramov

Hi @aaronabramov,

I made a prototype of code-frame: https://github.com/TheWebDevel/codeframe-prototype.

Screenshot 2020-06-20 at 4 36 08 PM

TheWebDevel avatar Jun 20 '20 11:06 TheWebDevel