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