Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created February 6, 2014 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xconnecting/8838629 to your computer and use it in GitHub Desktop.
Save xconnecting/8838629 to your computer and use it in GitHub Desktop.
[Spock] Pancoc characterization test 3
import spock.lang.Specification
class HeaderSpec extends Specification {
def "header characterization test"() {
when:
def proc = "pandoc header.md -o header.html".execute()
proc.waitFor()
then:
def result = new File("header.html").getText('UTF-8')
"""<h1 id="header-test">Header Test</h1>
""".normalize() == result.normalize()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment