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

only the last code block in Markdown gets tests generated for it #88

Open
BrianHicks opened this issue Oct 9, 2019 · 0 comments
Open
Labels
enhancement parsing Relates to parsing code or examples

Comments

@BrianHicks
Copy link
Contributor

I have a document which simplifies to the following:

```elm
import Json.Decode as Decode

Decode.decodeString Decode.int "1"
--> Ok 1
```

```elm
1 + 2
--> 3
```

In this document, elm-verify-examples 4.0.1 will only generate tests for the 1 + 2 block, not the Json.Decode block. Further, it totally skips this block regardless of where it lands in the document:

```elm
add : Int -> Int -> Int
add x y =
    x + y


add 1 2
--> 3
```

I'm happy to help, either with more info about my use case (parsing/verifying all the code examples in a book) or a fix.

@gampleman gampleman added enhancement parsing Relates to parsing code or examples labels Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement parsing Relates to parsing code or examples
Projects
None yet
Development

No branches or pull requests

2 participants