예제 #1
0
def test_block_comment():
    p = Dhall("{- hop -}")
    result = p.BlockComment()
    assert result == BlockComment("{- hop -}")
예제 #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)