souplesse/tests/TrackTest.elm
Daniel Barlow 6b3c456c41 reverse actual and expected in Expect
otherwise the error messages when test fails are arse about face
2024-10-24 17:13:17 +01:00

26 lines
697 B
Elm

module TrackTest exposing (specs)
import Fixtures
import Track exposing (Track, Point)
import Test exposing (..)
import Expect exposing (Expectation)
specs: Test
specs =
describe "XML Parsing"
[ test "it runs" <|
\_ ->
let
r = Track.parse Fixtures.threepoints
expected =
[ (Point 51.600643 -0.01856)
, (Point 51.600679 -0.018179)
, (Point 51.600697 -0.018064)
]
in
case r of
(Ok trk) -> Expect.equalLists expected trk
_ -> Expect.fail "not ok"
]