Just to play the devil's advocate: Their ASCII representation of 1d data is error prone and violates minimalistic principles. It is nice to view at and surely easier to read compared to a binary digit sequence, but has little advantage compared to present day testing infrastructure.
I’ve used these sorts of tests before, but under the name of ‘golden’ rather than ‘expect tests’. To complement the post’s OCaml example, here’s an article on how to use them in Haskell: https://ro-che.info/articles/2017-12-04-golden-tests
Yeah, the term "golden" is common in the hardware world, which corresponds to expected signal level traces either captured from a physical device with a logic analyzer, or generated with an ideal model.
Jane street has certainly been doing a good job of getting across my radar lately, but because they produce good content I'm actually quite happy to see it.
They've been sponsoring a few Youtube creators (like Matt Parker of Stand-Up Maths) and featured a bit on HN. It's interesting that they seem to do it as a recruitment mechanism rather than for publicity's sake.
Just to play the devil's advocate: Their ASCII representation of 1d data is error prone and violates minimalistic principles. It is nice to view at and surely easier to read compared to a binary digit sequence, but has little advantage compared to present day testing infrastructure.