Created
February 6, 2014 05:01
-
-
Save xconnecting/8838629 to your computer and use it in GitHub Desktop.
[Spock] Pancoc characterization test 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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