Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need some more docs on the front-page #68

Open
mattiasw2 opened this issue May 1, 2018 · 1 comment
Open

Need some more docs on the front-page #68

mattiasw2 opened this issue May 1, 2018 · 1 comment

Comments

@mattiasw2
Copy link

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?

@gampleman
Copy link
Collaborator

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants