elm-check
elm-check copied to clipboard
Ideas for new functions and other enhancements
Here are some ideas I have that are currently too speculative for 3.0.0.
expected: True But it was: False is a very unhelpful error message. Extracting common boolean operations into helpers could let us do better. But, I'd really like to see new use cases to guide the design, as well as other ideas.
isLessThan,isGreaterThan, -orEqualToisNearly, for floating point arithmetic- A producer of random generators, for stochastic functions. Testing a random system with unit tests -- though at least possible thanks to reproducible PRNGs -- is very brittle. Property-based testing fits much better. But this means writing a random generator of random seeds. Which sounds tricky, and probably requires
split.
Some kind of transformation before equality
claim
"Alice and Bob have the same age"
`that`
(\i -> { name = "Alice", age = i })
'is`
(\i -> { name = "Bob", age = i })
`for`
int
`after`
.age