From 916cc42e0bef4db381e82031cda4e78b15a24d76 Mon Sep 17 00:00:00 2001
From: mpeterv
This is an example inline link.
@@ -491,7 +485,7 @@ or MSN. ]] -- Test emphasis -emphasis = [[ +tests.emphasis = [[ Test *single asterisks* test. ~Test single asterisks test.
@@ -522,7 +516,7 @@ Test with *two* different *words*. ]] -- Test code -code = [[ +tests.code = [[ Use the `printf()` function. ~Use the printf()
function.
An auto link http://www.google.com/.
@@ -588,14 +582,14 @@ Mail links*literal asterisks*
]] -- Test hard linebreaks -linebreaks = [[ +tests.linebreaks = [[ Poetry in motion @@ -606,7 +600,7 @@ motion ]] -- Test amps and angles conversion -amps = [[ +tests.amps = [[ © ~©
@@ -621,7 +615,7 @@ AT&T ]] -- Test raw blocks -raw = [[ +tests.raw = [[Here's an inline link.
]] -markdown_auto_links = [[ +tests.markdown_auto_links = [[ Link:Minus: \-
The end.
]] -markdown_links_inline_style = [[ +tests.markdown_links_inline_style = [[ Just a [URL](/url/). [URL and title](/url/ "title"). @@ -1341,7 +1335,7 @@ Just a [URL](/url/). ]] -markdown_links_reference_style = [=[ +tests.markdown_links_reference_style = [=[ Foo [bar] [1]. Foo [bar][1]. @@ -1394,7 +1388,7 @@ Indented [four][] times. ]=] -markdown_literal_quotes_in_text = [=[ +tests.markdown_literal_quotes_in_text = [=[ Foo [bar][]. Foo [bar](/url/ "Title with "quotes" inside"). @@ -1407,7 +1401,7 @@ Foo [bar](/url/ "Title with "quotes" inside").Foo bar.
]=] -markdown_basics = [[ +tests.markdown_basics = [[ Markdown: Basics ================ @@ -2031,7 +2025,7 @@ you've got to put paragraph tags in your blockquotes:</p> ]] -markdown_syntax = [[ +tests.markdown_syntax = [[ Markdown: Syntax ================ @@ -3864,7 +3858,7 @@ _ underscore ]] -markdown_nested_blockquotes = [[ +tests.markdown_nested_blockquotes = [[ > foo > > > bar @@ -3882,7 +3876,7 @@ markdown_nested_blockquotes = [[ ]] -markdown_ordered_and_unordered_lists = [[ +tests.markdown_ordered_and_unordered_lists = [[ ## Unordered Asterisks tight: @@ -4145,7 +4139,7 @@ back. ]] -markdown_strong_and_em_together = [[ +tests.markdown_strong_and_em_together = [[ ***This is strong and em.*** So is ***this*** word. @@ -4163,7 +4157,7 @@ So is ___this___ word.So is this word.
]] -markdown_tabs = [[ +tests.markdown_tabs = [[ + this is a list item indented with tabs @@ -4213,7 +4207,7 @@ indented with spaces ]] -markdown_tidyness = [[ +tests.markdown_tidyness = [[ > A list within a blockquote: > > * asterisk 1 @@ -4230,7 +4224,7 @@ markdown_tidyness = [[ ]] -bug_from_paul_chiusano_gmail_com = [[ +tests.bug_from_paul_chiusano_gmail_com = [[ [context-free grammar][CFG] [notated][BNF] [unrestricted grammar][] @@ -4248,7 +4242,7 @@ bug_from_paul_chiusano_gmail_com = [[foo()
Kalle
]] -bugs = [==[ +tests.bugs = [==[ [the dog](the%20dog.html) ~ @@ -4400,7 +4394,7 @@ This is [an example] [id] reference-style link. -- Unhandled test: _M*A*S*H_ -setfenv(1, _G) +local quiet_mode -- Test running function local function run_tests() @@ -4460,9 +4454,9 @@ local function run_tests() return failed end - total_failed = 0 - for _,k in ipairs(TESTS._indices) do - total_failed = total_failed + run_test(k,TESTS[k]) + local total_failed = 0 + for _,k in ipairs(tests) do + total_failed = total_failed + run_test(k,tests[k]) end if total_failed > 0 then os.exit(-1)