diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-08 03:11:26 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-08 03:11:26 +0000 |
commit | 3f3c29f9a4217ef4fc2df6e63bf22cd78640e907 (patch) | |
tree | e5eed836ce163c57897588cd4ca5b860bee5baa0 /tests | |
parent | 766dbb9899b037b8ec1294a1fb32a08a09adf004 (diff) | |
download | pandoc-3f3c29f9a4217ef4fc2df6e63bf22cd78640e907.tar.gz |
Added test suites for RST, markdown, and man tables.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@642 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tables.man | 205 | ||||
-rw-r--r-- | tests/tables.markdown | 60 | ||||
-rw-r--r-- | tests/tables.rst | 71 |
3 files changed, 336 insertions, 0 deletions
diff --git a/tests/tables.man b/tests/tables.man new file mode 100644 index 000000000..de685c1b0 --- /dev/null +++ b/tests/tables.man @@ -0,0 +1,205 @@ +.PP +Simple table with caption: +.PP +Demonstration of simple table syntax\. +.TS +tab(@); +rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n). +T{ +Right +T}@T{ +Left +T}@T{ +Center +T}@T{ +Default +T} +_ +T{ +12 +T}@T{ +12 +T}@T{ +12 +T}@T{ +12 +T} +T{ +123 +T}@T{ +123 +T}@T{ +123 +T}@T{ +123 +T} +T{ +1 +T}@T{ +1 +T}@T{ +1 +T}@T{ +1 +T} +.TE +.PP +Simple table without caption: +.PP +.TS +tab(@); +rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n). +T{ +Right +T}@T{ +Left +T}@T{ +Center +T}@T{ +Default +T} +_ +T{ +12 +T}@T{ +12 +T}@T{ +12 +T}@T{ +12 +T} +T{ +123 +T}@T{ +123 +T}@T{ +123 +T}@T{ +123 +T} +T{ +1 +T}@T{ +1 +T}@T{ +1 +T}@T{ +1 +T} +.TE +.PP +Simple table indented two spaces: +.PP +Demonstration of simple table syntax\. +.TS +tab(@); +rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n). +T{ +Right +T}@T{ +Left +T}@T{ +Center +T}@T{ +Default +T} +_ +T{ +12 +T}@T{ +12 +T}@T{ +12 +T}@T{ +12 +T} +T{ +123 +T}@T{ +123 +T}@T{ +123 +T}@T{ +123 +T} +T{ +1 +T}@T{ +1 +T}@T{ +1 +T}@T{ +1 +T} +.TE +.PP +Multiline table with caption: +.PP +Here\[aq]s the caption\. It may span multiple lines\. +.TS +tab(@); +cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n). +T{ +Centered Header +T}@T{ +Left Aligned +T}@T{ +Right Aligned +T}@T{ +Default aligned +T} +_ +T{ +First +T}@T{ +row +T}@T{ +12\.0 +T}@T{ +Example of a row that spans multiple lines\. +T} +T{ +Second +T}@T{ +row +T}@T{ +5\.0 +T}@T{ +Here\[aq]s another one\. Note the blank line between rows\. +T} +.TE +.PP +Multiline table without caption: +.PP +.TS +tab(@); +cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n). +T{ +Centered Header +T}@T{ +Left Aligned +T}@T{ +Right Aligned +T}@T{ +Default aligned +T} +_ +T{ +First +T}@T{ +row +T}@T{ +12\.0 +T}@T{ +Example of a row that spans multiple lines\. +T} +T{ +Second +T}@T{ +row +T}@T{ +5\.0 +T}@T{ +Here\[aq]s another one\. Note the blank line between rows\. +T} +.TE
\ No newline at end of file diff --git a/tests/tables.markdown b/tests/tables.markdown new file mode 100644 index 000000000..0251c3149 --- /dev/null +++ b/tests/tables.markdown @@ -0,0 +1,60 @@ +Simple table with caption: + + Right Left Center Default + ----------- ------ ------------ --------- + 12 12 12 12 + 123 123 123 123 + 1 1 1 1 + + Table: Demonstration of simple table syntax. + +Simple table without caption: + + Right Left Center Default + ----------- ------ ------------ --------- + 12 12 12 12 + 123 123 123 123 + 1 1 1 1 + +Simple table indented two spaces: + + Right Left Center Default + ----------- ------ ------------ --------- + 12 12 12 12 + 123 123 123 123 + 1 1 1 1 + + Table: Demonstration of simple table syntax. + +Multiline table with caption: + + ----------------------------------------------------------- + Centered Left Right Default aligned + Header Aligned Aligned + ----------- ---------- ------------ -------------------------- + First row 12.0 Example of a row that + spans multiple lines. + + Second row 5.0 Here's another one. Note + the blank line between + rows. + ----------------------------------------------------------- + + Table: Here's the caption. It may span multiple lines. + +Multiline table without caption: + + ----------------------------------------------------------- + Centered Left Right Default aligned + Header Aligned Aligned + ----------- ---------- ------------ -------------------------- + First row 12.0 Example of a row that + spans multiple lines. + + Second row 5.0 Here's another one. Note + the blank line between + rows. + ----------------------------------------------------------- + + + diff --git a/tests/tables.rst b/tests/tables.rst new file mode 100644 index 000000000..db5c1c3d8 --- /dev/null +++ b/tests/tables.rst @@ -0,0 +1,71 @@ +Simple table with caption: + ++-------------+--------+--------------+-----------+ +| Right | Left | Center | Default | ++=============+========+==============+===========+ +| 12 | 12 | 12 | 12 | ++-------------+--------+--------------+-----------+ +| 123 | 123 | 123 | 123 | ++-------------+--------+--------------+-----------+ +| 1 | 1 | 1 | 1 | ++-------------+--------+--------------+-----------+ + +Table: Demonstration of simple table syntax. + +Simple table without caption: + ++-------------+--------+--------------+-----------+ +| Right | Left | Center | Default | ++=============+========+==============+===========+ +| 12 | 12 | 12 | 12 | ++-------------+--------+--------------+-----------+ +| 123 | 123 | 123 | 123 | ++-------------+--------+--------------+-----------+ +| 1 | 1 | 1 | 1 | ++-------------+--------+--------------+-----------+ + +Simple table indented two spaces: + ++-------------+--------+--------------+-----------+ +| Right | Left | Center | Default | ++=============+========+==============+===========+ +| 12 | 12 | 12 | 12 | ++-------------+--------+--------------+-----------+ +| 123 | 123 | 123 | 123 | ++-------------+--------+--------------+-----------+ +| 1 | 1 | 1 | 1 | ++-------------+--------+--------------+-----------+ + +Table: Demonstration of simple table syntax. + +Multiline table with caption: + ++-------------+------------+--------------+----------------------------+ +| Centered | Left | Right | Default aligned | +| Header | Aligned | Aligned | | ++=============+============+==============+============================+ +| First | row | 12.0 | Example of a row that | +| | | | spans multiple lines. | ++-------------+------------+--------------+----------------------------+ +| Second | row | 5.0 | Here's another one. Note | +| | | | the blank line between | +| | | | rows. | ++-------------+------------+--------------+----------------------------+ + +Table: Here's the caption. It may span multiple lines. + +Multiline table without caption: + ++-------------+------------+--------------+----------------------------+ +| Centered | Left | Right | Default aligned | +| Header | Aligned | Aligned | | ++=============+============+==============+============================+ +| First | row | 12.0 | Example of a row that | +| | | | spans multiple lines. | ++-------------+------------+--------------+----------------------------+ +| Second | row | 5.0 | Here's another one. Note | +| | | | the blank line between | +| | | | rows. | ++-------------+------------+--------------+----------------------------+ + + |