From 85b6ed4349dd09e0fdff44d15f6829cd061a63a7 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 4 Jun 2012 18:10:31 +0900 Subject: [PATCH] add some tests. --- unittest.vim | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/unittest.vim b/unittest.vim index ec0070d..fad668c 100644 --- a/unittest.vim +++ b/unittest.vim @@ -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\"$$$$\\/$$$$ } hello", + 'type': "haml", + 'result': "-# %a{ :href => \"http://www.google.com\" } hello", + }, + { + 'name': "uncomment tag", + 'query': "-# %a{ :href => \"http://www.google.com\"$$$$\\/$$$$ } 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\"$$$$\\/$$$$\n | hello", + 'type': "slim", + 'result': "/a href=\"http://www.google.com\"\n | hello", + }, + { + 'name': "uncomment tag", + 'query': "/a href=\"http://www.google.com\"$$$$\\/$$$$\n | hello", + 'type': "slim", + 'result': "a href=\"http://www.google.com\"\n | hello", + }, ], }, {