aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/tables.context41
-rw-r--r--tests/writer.context31
2 files changed, 50 insertions, 22 deletions
diff --git a/tests/tables.context b/tests/tables.context
index ad9868559..20f7ceedb 100644
--- a/tests/tables.context
+++ b/tests/tables.context
@@ -132,3 +132,44 @@ Multiline table without caption:
\NC\AR
\HL
\stoptable
+
+Table without column headers:
+
+\placetable[here]{none}
+\starttable[|r|l|c|r|]
+\HL
+\NC 12
+\NC 12
+\NC 12
+\NC 12
+\NC\AR
+\NC 123
+\NC 123
+\NC 123
+\NC 123
+\NC\AR
+\NC 1
+\NC 1
+\NC 1
+\NC 1
+\NC\AR
+\HL
+\stoptable
+
+Multiline table without column headers:
+
+\placetable[here]{none}
+\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
+\HL
+\NC First
+\NC row
+\NC 12.0
+\NC Example of a row that spans multiple lines.
+\NC\AR
+\NC Second
+\NC row
+\NC 5.0
+\NC Here's another one. Note the blank line between rows.
+\NC\AR
+\HL
+\stoptable
diff --git a/tests/writer.context b/tests/writer.context
index 017b7ed25..50890730d 100644
--- a/tests/writer.context
+++ b/tests/writer.context
@@ -14,24 +14,6 @@
\setuphead[subsection][style=\tfb]
\setuphead[subsubsection][style=\bf]
-% define title block commands
-\unprotect
-\def\doctitle#1{\gdef\@title{#1}}
-\def\author#1{\gdef\@author{#1}}
-\def\date#1{\gdef\@date{#1}}
-\date{\currentdate} % Default to today unless specified otherwise.
-\def\maketitle{%
- \startalignment[center]
- \blank[2*big]
- {\tfd \@title}
- \blank[3*medium]
- {\tfa \@author}
- \blank[2*medium]
- {\tfa \@date}
- \blank[3*medium]
- \stopalignment}
-\protect
-
% define descr (for definition lists)
\definedescription[descr][
headstyle=bold,style=normal,align=left,location=hanging,
@@ -68,11 +50,16 @@ after={\blank[medium]},
\protect
-\doctitle{Pandoc Test Suite}
-\author{John MacFarlane\\Anonymous}
-\date{July 17, 2006}
\starttext
-\maketitle
+\startalignment[center]
+ \blank[2*big]
+ {\tfd Pandoc Test Suite}
+ \blank[3*medium]
+ {\tfa John MacFarlane\crlf Anonymous}
+ \blank[2*medium]
+ {\tfa July 17, 2006}
+ \blank[3*medium]
+\stopalignment
This is a set of tests for pandoc. Most of them are adapted from
John Gruber's markdown test suite.