Example #1
0
def test_block_comment():
    p = Dhall("{- hop -}")
    result = p.BlockComment()
    assert result == BlockComment("{- hop -}")
Example #2
0
def test_looong_comment():
    "Long comments used to fail on recursion error"
    cmt = "{-" + (" " * 5000) + "-}"
    p = Dhall(cmt)
    result = p.BlockComment()
    assert result == BlockComment(cmt)