From 9e527146c76fbf67d302c8d149c4dab9ed881e84 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 18 May 2013 20:56:56 -0400 Subject: [PATCH] Tokenizer tests for comments. --- tests/tokenizer/comments.mwtest | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/tests/tokenizer/comments.mwtest b/tests/tokenizer/comments.mwtest index e69de29..0d7c0fa 100644 --- a/tests/tokenizer/comments.mwtest +++ b/tests/tokenizer/comments.mwtest @@ -0,0 +1,39 @@ +name: blank +label: a blank comment +input: "" +output: [CommentStart(), CommentEnd()] + +--- + +name: basic +label: a basic comment +input: "" +output: [CommentStart(), Text(text=" comment "), CommentEnd()] + +--- + +name: tons_of_nonsense +label: a comment with tons of ignorable garbage in it +input: "" +output: [CommentStart(), Text(text=" foo{{bar}}[[basé\n\n]{}{}{}{}]{{{{{{haha{{--a>aa