diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-01-15 19:52:42 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-01-15 19:52:42 +0000 |
commit | 60989d0637780787fb337b94af212f1ee9e1ae22 (patch) | |
tree | 95b5caa1e7e304a47739532a9c4d3767ce54435c /tests/runtests.pl | |
parent | 4224d913880e4f77a358cda868c9d1ca75820506 (diff) | |
download | pandoc-60989d0637780787fb337b94af212f1ee9e1ae22.tar.gz |
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
Diffstat (limited to 'tests/runtests.pl')
-rw-r--r-- | tests/runtests.pl | 19 |
1 files changed, 18 insertions, 1 deletions
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"); |