Permalink
Browse files

Tested long argument with trailing slash

--HG--
branch : sneakylang
  • Loading branch information...
1 parent 22bb28c commit 06a2e56ac19931188751abfe66b8c5033c4a6859 almad committed Mar 24, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 sneakylang/test/test_macro_syntax.py
@@ -24,6 +24,11 @@ def testParsingLongArgument(self):
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({

0 comments on commit 06a2e56

Please sign in to comment.