elm-verify-examples icon indicating copy to clipboard operation
elm-verify-examples copied to clipboard

Need some more docs on the front-page

Open mattiasw2 opened this issue 7 years ago • 1 comments

I am missing a simple example. I have an existing demo project which is built on top elm-spa-example from https://github.com/rtfeldman/elm-spa-example, and I now wanted to add some of my samples.

Before I do anything with elm-very-samples, elm-test runs fine, and I get the output saying 9 tests succeeded.

I created a file src/MyExample1.elm with ( I changed add 3 3 --> 6 to --> 5 to get a failure).

module MyExample1 exposing (..)


{-| returns the sum of two int.

    -- You can write the expected result on the next line,

    add 41 1
    --> 42

    -- or on the same line.

    add 3 3 --> 5

-}
add : Int -> Int -> Int
add =
    (+)

Whenever I run elm-verify-examples, elm-verify-examples.json is overwritten, so my change "tests": [MyExample1] disappears directly.

elm-test never reports any errors.

What am I missing?

mattiasw2 avatar May 01 '18 08:05 mattiasw2

Is this still an issue? Sorry for not getting back. It seems like this is explained in the README somewhat sensibly, so not sure if this is relevant. (I'll close in about 2 weeks unless we hear something more here, but happy to reopen, so no pressure.)

gampleman avatar Oct 20 '23 12:10 gampleman