From 286788ae88a1fd698b84b2df12b2b25c42fe1ed7 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 9 Apr 2013 18:19:03 +0900 Subject: [PATCH] Add tests --- unittest.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/unittest.vim b/unittest.vim index e47ac2f..c4fcc3d 100644 --- a/unittest.vim +++ b/unittest.vim @@ -490,6 +490,10 @@ finish 'query': "{test case $$$ }*3", 'result': "test case 001 test case 002 test case 003 ", }, + { + 'query': "a[title=$#]{foo}", + 'result': "foo\n", + }, ], }, { @@ -646,6 +650,10 @@ finish 'query': ".content{Hello!}|haml", 'result': "%div.content Hello!\n", }, + { + 'query': "a[title=$#]{foo}", + 'result': "%a{ :href => \"\", :title => \"foo\" } foo\n", + }, ], }, { @@ -698,6 +706,10 @@ finish 'query': ".content{Hello!}|slim", 'result': "div class=\"content\"\n | Hello!\n", }, + { + 'query': "a[title=$#]{foo}", + 'result': "a href=\"\" title=\"foo\"\n | foo\n", + }, ], }, {