From 94a89878282e3c2db367faca408e4f5be4b65a82 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 25 Oct 2024 00:11:58 +0100 Subject: [PATCH] improve test for missing ele --- tests/TrackTest.elm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TrackTest.elm b/tests/TrackTest.elm index ef13302..554b950 100644 --- a/tests/TrackTest.elm +++ b/tests/TrackTest.elm @@ -24,7 +24,8 @@ specs = in case Track.parse xml of Ok (p::pts) -> - Expect.equal p (Point (51.600643, -0.01856, Nothing) (Just (Time.millisToPosix 1729669252256)) (Just 89)) + case p.loc of + (_, _, ele) -> Expect.equal ele Nothing Ok _ -> Expect.fail "empty list" (Err f) -> Expect.fail f