3 ms·
I like the simplicity of your implementation but I would fear overfitting to your example development data. In clojure if youre writing tests, even a quick moc
by bundtlake 2y ago
I like the simplicity of your implementation but I would fear overfitting to your example development data.
In clojure if youre writing tests, even a quick mock-up, I’d recommend you do so directly using “clojure.test”.
Clojure has my favorite test suite, especially when paired with “clojure.test.check”.
It’s super powerful, and fun to use with its toolbox of generators that can test over a broad variety of inputs.
When using the generators it’s less about the variables being defined so much as their properties.
https://clojure.org/guides/test_check_beginner https://clojure.org/guides/test_check_beginner
- dmichulke 2y agoMy original comment was only meant for real-time debugging, not for testing.
- bundtlake 2y agoFor sure, but you’re using test driven development just without writing the tests. (which I do think is a clever) Might as well write the tests, or, as I recommended, generators for your expected input.