logoalt Hacker News

atq2119yesterday at 10:15 AM1 replyview on HN

You don't really want or need classical unit tests for compilers. You need a harness that you can feed a program representation into and get a transformed one out, then check the result -- ideally mostly just by running it, or alternatively by comparing the output against a reference.


Replies

0x696C6961yesterday at 3:17 PM

How is that not a unit test?

show 1 reply