3 ms·
add(a, b) => a == 1 && b == 1 ? 1 : a + b Kinda disappointing your test would take so long to run and still catch a simple error.
by postalrat 5y ago
add(a, b) => a == 1 && b == 1 ? 1 : a + b
Kinda disappointing your test would take so long to run and still catch a simple error.
- milkey_mouse 5y ago> your test would take so long to run I think GP's test would probably be implemented with property testing (or even better, symbolic execution). It wouldn't necessarily take super long to run.
- postalrat 5y agoHow difficult would it be to write a proper test with one of those systems for something more complex when even this trivial example doesn't have solution yet?