Commits

almad  committed 8a220f5

Tested long argument with trailing slash

  • Participants
  • Parent commits 8d6b978

Comments (0)

Files changed (1)

File sneakylang/test/test_macro_syntax.py

         self.assertEquals(DummyNode, o.children[0].__class__)
         self.assertEquals(u"long argument", o.children[0].children[0].content)
 
+    def testParsingLongArgumentWithTrailingSlash(self):
+        s = '((onearg "long argument "))'
+        o = parse(s, RegisterMap({OneArgumentMacro : Register()}), document_root = True)
+        self.assertEquals(u"long argument ", o.children[0].children[0].content)
+
 class TestSimpleResolving(TestCase):
     def setUp(self):
         self.register_map = RegisterMap({