From 5d15fa693cab623d061df2f880eaa7a5b52fc8e6 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Mon, 29 Sep 2014 10:00:08 +0200 Subject: [PATCH] Improve bold and italic tests. --- test/syntax.vader | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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 -- 2.39.5