You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking for a document writing system and madoko seems pretty cool. I looked through the docs, but couldn't find any specific mention for embedded tests though. Is it possible to mark code blocks for testing, as in doctest? I'm imagining something like:
```haskell
foo :: Int -> Int
foo x = x + 1
```
And then:
```haskell {test}
foo 3 == 4
```
The above wouldn't be rendered in the final document. And more importantly:
I've been looking for a document writing system and madoko seems pretty cool. I looked through the docs, but couldn't find any specific mention for embedded tests though. Is it possible to mark code blocks for testing, as in doctest? I'm imagining something like:
And then:
The above wouldn't be rendered in the final document. And more importantly:
which would render the test case in the document also check that it is still true, in the style of doctest: http://hackage.haskell.org/package/doctest
Of course, the devil is in the details. Have you given this any thought or have any advice on how to go about such a system?
The text was updated successfully, but these errors were encountered: