From c638746850c88e6eb3c75cc08346755a2db030ac Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 22 Oct 2014 15:38:13 -0500 Subject: [PATCH] Add a test for tokenizer line 1384. --- tests/tokenizer/tables.mwtest | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/tokenizer/tables.mwtest b/tests/tokenizer/tables.mwtest index 4e4fe74..59ad934 100644 --- a/tests/tokenizer/tables.mwtest +++ b/tests/tokenizer/tables.mwtest @@ -369,6 +369,13 @@ output: [TagOpenOpen(wiki_markup="{|"), Text(text="table"), TagAttrStart(pad_fir --- +name: inappropriate_marker_at_line_start +label: an inappropriate marker (a right bracket) at the start of a line in the table +input: "{|\n}" +output: [Text(text="{|\n}")] + +--- + name: recursion_five_hundred_opens label: test potentially dangerous recursion: five hundred table openings, without spaces input: "{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|"