2 ms·
small, fine-grained black box tests can be really good for this. in my last project, a type checker, the vast majority of the test suite was code snippets and a
by zem 2y ago
small, fine-grained black box tests can be really good for this. in my last project, a type checker, the vast majority of the test suite was code snippets and assertions about expected errors the checker needed to catch, and it was an invaluable aid when making complex changes to the implementation.
- seanmcdirmid 2y agoAnything that transforms or processes text, like a compiler or type checker, is pretty easy to test. You get into trouble with user interfaces, however.