It's oddly frustrating writing tests for a test library. You want better testing features (hence writing the library), but you have to write tests without them (due to bootstrapping.
miniblog.
Related Posts
Do any tech streamers try new software live? It'd be a really fun way of doing UX testing.
I've been using a 'golden tests' library for testing my parser, and it's just delightful. Rather than writing a verbose assertion about the resulting AST, I can just re-run my tests until the output looks good!
I've been using a 'golden tests' library for testing my parser, and it's just delightful. Rather than writing a verbose assertion about the resulting AST, I can just re-run my tests until the output looks good!
I'm using https://github.com/jfecher/golden-tests currently, which can automatically update the output in the file.
Example commit: