Elm-verify-examples not identify a doctest

I’ve installed elm-verify-examples v5.2.0

{-| set Day input to correct number of days for Month/Year picked

    -- some tests

    import Date
    dayOptions
        (Date.fromCalendarDate 2022 May 1)
        (Date.fromCalendarDate 2022 Aug 15)
    --> List.range 1 31

-}
daysOptions...

I have four spaces as indents. Where else might the misstep be?
I’ve entered another doctest in another function and that is identified by elm-verify-examples so I’ve made an error with the above example

I think I’m struggling writing Elm code in a comment.
Writing a simple test of the form 1 + 1 --> 2 is found by elm-verify-examples and a test is generated.

This, though, is not recognised:

    import Date
    import Time exposing (Month(..))
    List.length (dayOptions (Date.fromCalendarDate 2022 May 1) (Date.fromCalendarDate 2022 Aug 15))
    --> 31

It’s my use of imports that is causing this test not to be picked up.

Found my problem! The import statements need two carriage returns; one doesn’t cut it (there are two in the docs :slight_smile:

    import Date
    import Time exposing (Month(..))

    List.length (dayOptions (Date.fromCalendarDate 2022 May 1) (Date.fromCalendarDate 2022 Aug 15))
    --> 31

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.