|
|
|
|
|
by keyle
236 days ago
|
|
I go straight to having examples/ with a ton of little test cases, and check the output stdout and stderr to see whether it went pear shaped. It's an end to end test harness of sorts. If you care about locking down your AST and IR output, I'd recommend having a printer of sort to stdout and check against that, like a sha-1 or expected output.txt to compare against, see example [1] [1] https://pastebin.com/ZA6CKwPZ |
|