Closed mpizenberg closed 3 years ago
Side note, I had to remove the Elm.Kernel.Debug import to be able to compile, I'm not sure why.
See https://github.com/elm-explorations/test/pull/145 (its a bug in elm 0.19.1).
So if you can revert the Elm.Kernel.Debug
changes and then use ./tests/make.sh
to compile rather than elm make
everything should work :)
[{"path":"benchmarks/Main.elm","message":"File is not formatted with elm-format-0.8.5 --elm-version=0.19"}
]
CI failures :)
@avh4 @drathier any objections landing this on master and queuing it for the 2.0 release (whenever that should happen)?
Sorry, I've been away. Looks fine to me.
ping @mpizenberg. Just waiting on elm-format so we can merge :)
re-ping @mpizenberg :)
I had forgotten about this ^^. Is there anything I have to do?
Oh I have to elm-format the code? Let me look at this later today!
Since it was kinda unrelated, I opened another PR for formatting in #170. Then the CI here should pass.
@harrysarson it does not seem like the close/open trick will do it ^^. Maybe we wait for the switch to GH Action in #173 ?
Let me rebase this.
Hi, following suggestions that it would be nicer to have all duplicates at once, I've come up with a possible implementation of this. Given the following tests:
Instead of getting the following elm-test output:
We are getting the following one:
You can notice that in the case of
concat
anddescribe
, both "should fail" and "should pass" duplicates are reported. And in the case ofdescribe
and of duplicate child, the labels go one step further.To gather all duplicates, I simply aggregate them inside a
Set
instead of failing fast with aResult.andThen
infold
.Side note, I had to remove the
Elm.Kernel.Debug
import to be able to compile, I'm not sure why.