From: Ciro Santilli Date: Mon, 29 Sep 2014 08:00:08 +0000 (+0200) Subject: Improve bold and italic tests. X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/5d15fa693cab623d061df2f880eaa7a5b52fc8e6?ds=sidebyside;hp=de94e028f20cf95a669a65b0d38547918e15fbe0 Improve bold and italic tests. --- diff --git a/test/syntax.vader b/test/syntax.vader index 6d51118..8471695 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -1,14 +1,18 @@ -Given mkd (bold); -**bold** not bold +Given mkd; +a **b** c -Execute (SyntaxOf(pattern)): +Execute (bold): + AssertNotEqual SyntaxOf('a'), 'htmlBold' AssertEqual SyntaxOf('b'), 'htmlBold' + AssertNotEqual SyntaxOf('c'), 'htmlBold' -Given mkd (italic); -*italic* +Given mkd; +a *b* c -Execute (SyntaxOf(pattern)): - AssertEqual SyntaxOf('i'), 'htmlItalic' +Execute (italic): + AssertNotEqual SyntaxOf('a'), 'htmlItalic' + AssertEqual SyntaxOf('b'), 'htmlItalic' + AssertNotEqual SyntaxOf('c'), 'htmlItalic' # Links