Discussion:
[elm-discuss] How to properly test a module?
John Bugner
2017-06-17 14:32:08 UTC
Permalink
So, I made a
module!: http://package.elm-lang.org/packages/JohnBugner/elm-bag/latest

It's a bag (aka a multiset). But, I haven't tested it yet. I looked to
'Core' for inspiration
( https://github.com/elm-lang/core/blob/master/tests/Main.elm ), but it
doesn't help me; It imports a bunch of 'Test' modules, but I don't know
where these modules come from, or how to use them. What's the proper way to
do this? Is there an official guide on this (yet)?

Btw, why doesn't 'Core' have a bag/multiset type already?
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Aaron VonderHaar
2017-06-17 14:59:46 UTC
Permalink
Probably the best starting point are the docs for elm-community/elm-test if
you haven't seen them already:
http://package.elm-lang.org/packages/elm-community/elm-test/latest
So, I made a module!: http://package.elm-lang.org/packages/JohnBugner/
elm-bag/latest
It's a bag (aka a multiset). But, I haven't tested it yet. I looked to
'Core' for inspiration ( https://github.com/elm-lang/
core/blob/master/tests/Main.elm ), but it doesn't help me; It imports a
bunch of 'Test' modules, but I don't know where these modules come from, or
how to use them. What's the proper way to do this? Is there an official
guide on this (yet)?
Btw, why doesn't 'Core' have a bag/multiset type already?
--
You received this message because you are subscribed to the Google Groups
"Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...