add some tests.

This commit is contained in:
mattn
2012-06-04 18:10:31 +09:00
parent 2139620edf
commit 85b6ed4349

View File

@@ -645,6 +645,32 @@ finish
'type': "haml",
'result': "%div.content Hello!\n",
},
{
'name': "join tag",
'query': "",
'type': "haml",
'result': "",
'skip': 1,
},
{
'name': "split tag",
'query': "",
'type': "haml",
'result': "",
'skip': 1,
},
{
'name': "comment tag",
'query': "%a{ :href => \"http://www.google.com\"$$$$\\<c-y>/$$$$ } hello",
'type': "haml",
'result': "-# %a{ :href => \"http://www.google.com\" } hello",
},
{
'name': "uncomment tag",
'query': "-# %a{ :href => \"http://www.google.com\"$$$$\\<c-y>/$$$$ } hello",
'type': "haml",
'result': "%a{ :href => \"http://www.google.com\" } hello",
},
],
},
{
@@ -674,6 +700,32 @@ finish
'type': "slim",
'result': "div class=\"content\"\n | Hello!\n",
},
{
'name': "join tag",
'query': "",
'type': "slim",
'result': "",
'skip': 1,
},
{
'name': "split tag",
'query': "",
'type': "slim",
'result': "",
'skip': 1,
},
{
'name': "comment tag",
'query': "a href=\"http://www.google.com\"$$$$\\<c-y>/$$$$\n | hello",
'type': "slim",
'result': "/a href=\"http://www.google.com\"\n | hello",
},
{
'name': "uncomment tag",
'query': "/a href=\"http://www.google.com\"$$$$\\<c-y>/$$$$\n | hello",
'type': "slim",
'result': "a href=\"http://www.google.com\"\n | hello",
},
],
},
{