From 60989d0637780787fb337b94af212f1ee9e1ae22 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Mon, 15 Jan 2007 19:52:42 +0000 Subject: Added support for tables in markdown reader and in LaTeX, DocBook, and HTML writers. The syntax is documented in README. Tests have been added to the test suite. git-svn-id: https://pandoc.googlecode.com/svn/trunk@493 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/runtests.pl | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index 754b6e75e..44b56f844 100644 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -4,7 +4,7 @@ $verbose = 1; my $diffexists = `which diff`; if ($diffexists eq "") { die "diff not found in path.\n"; } -my $script = "./pandoc"; +my $script = "COLUMNS=78 ./pandoc"; use Getopt::Long; GetOptions("script=s" => \$script); @@ -73,12 +73,29 @@ print "Testing -H -B -A -c options..."; `$script -r native -s -w html -H insert -B insert -A insert -c main.css s5.native > tmp.html`; test_results("-B, -A, -H, -c options", "tmp.html", "s5.inserts.html"); +print "Testing tables:\n"; +print " html writer..."; +`$script -r native -w html tables.native > tmp.html`; +test_results("html table writer", "tmp.html", "tables.html"); + +print " latex writer..."; +`$script -r native -w latex tables.native > tmp.tex`; +test_results("latex table writer", "tmp.tex", "tables.tex"); + +print " docbook writer..."; +`$script -r native -w docbook tables.native > tmp.db`; +test_results("docbook table writer", "tmp.db", "tables.db"); + print "\nReader tests:\n"; print "Testing markdown reader..."; `$script -r markdown -w native -s -S testsuite.txt > tmp.native`; test_results("markdown reader", "tmp.native", "testsuite.native"); +print " tables..."; +`$script -r markdown -w native tables.txt > tmp.native`; +test_results("markdown table reader", "tmp.native", "tables.native"); + print "Testing rst reader..."; `$script -r rst -w native -s rst-reader.rst > tmp.native`; test_results("rst reader", "tmp.native", "rst-reader.native"); -- cgit v1.2.3