News for hackers. Stuff that matters.
Re:Jane Street Blog – What if writing tests was a joyful exp... by Storment33 on Friday February 06, 2026 @10:17AM (#46913853)
The problem is some stuff is a real pain to test with static assertions. Such as I was saying about compilers. It would be a real pain to maintain an expected AST in a unit test, then you'd have to go rework it all if you change the shape and or add/remove nodes etc.

You can mix the approaches, have some static assertions(as sanity checks) but make most snapshot tests. Like I said I wouldn't use snapshot testing for a fibonacci method, but there are problems out there that are a real pain to test via static assertions.

There are no comments on this comment yet.