From: Ciro Santilli Date: Mon, 6 Oct 2014 10:02:52 +0000 (+0200) Subject: Merge pull request #133 from cirosantilli/better-bold-italic-test X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/1311140900e9505dfab3442dfce400f10fa351b6?hp=7046e0dd612f31d02c954b96915dd00866147572 Merge pull request #133 from cirosantilli/better-bold-italic-test Improve bold and italic tests. --- diff --git a/test/syntax.vader b/test/syntax.vader index 4f0a175..ece36ee 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