Commits

Lucian Brănescu-Mihăilă  committed 94d144b

Vector parsing test.

  • Participants
  • Parent commits d1bb611

Comments (0)

Files changed (2)

         r",": " ",
         r"\(": " ( ",
         r"\)": " ) ",
+        r"\[": " [ ",
+        r"\]": " ] ",
         r"'": " ' ",
         r"`": " ` ",
         # match only if next char isn't @, lookahead so it isn't consumed
     assert parse(['(', '(', '1', ')', '(', '2', ')', ')']) == [[1], [2]]
 
 
+def test_parse_vector():
+    assert parse(['[', '1', '2', ']']) == [1, 2]
+
+
 def test_parse_unmatched():
     with raises(SyntaxError):
         assert parse(['('])