https://github.com/ianmackenzie/elm-geometry-test
Helpful utilities for testing code that uses elm-geometry
https://github.com/ianmackenzie/elm-geometry-test
Last synced: about 2 months ago
JSON representation
Helpful utilities for testing code that uses elm-geometry
- Host: GitHub
- URL: https://github.com/ianmackenzie/elm-geometry-test
- Owner: ianmackenzie
- License: mpl-2.0
- Created: 2020-02-08T04:03:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-13T02:43:25.000Z (over 1 year ago)
- Last Synced: 2025-03-14T20:13:08.083Z (about 2 months ago)
- Language: Elm
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-geometry-test
This package contains some helpful utilities for testing code that uses
[`elm-geometry`](https://package.elm-lang.org/packages/ianmackenzie/elm-geometry/latest/).
This includes both random generators for test input values, and functions for constructing
[`Expectation`](https://package.elm-lang.org/packages/elm-explorations/test/latest/Expect)s
that compare geometric values to within a small tolerance (to allow for
numerical roundoff).If you have an app or package that uses `elm-geometry` and you want to use this
package to help with testing, you would generally add `elm-geometry` to your
`dependencies` and `elm-geometry-test` to your `test-dependencies`. Note that
this package is fairly new and breaking API changes may occur (it should not be
considered as stable as `elm-geometry` itself).## Contributing
All the code in this repository is simply copied over from some internal testing
modules in `elm-geometry` so that they can be published separately; if you find
a bug or are interested in contributing new functionality, please [open a new
issue](https://github.com/ianmackenzie/elm-geometry/issues) there!