From ca53e0361ac27a532017057faa7e417fe1bc80bb Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 4 Aug 2018 20:07:20 +0300 Subject: Add testsuite for texi translator --- testdata/bold.texi | 1 + testdata/boldit0.texi | 1 + testdata/boldit1.texi | 1 + testdata/boldit2.texi | 1 + testdata/boldit3.texi | 1 + testdata/colon.texi | 11 +++++++++++ testdata/deflist.texi | 12 ++++++++++++ testdata/header0.texi | 5 +++++ testdata/headings.texi | 22 ++++++++++++++++++++++ testdata/hz.texi | 8 ++++++++ testdata/it.texi | 1 + testdata/itbold1.texi | 1 + testdata/itbold2.texi | 1 + testdata/itbold3.texi | 1 + testdata/link.texi | 1 + testdata/nowiki-tag.texi | 1 + testdata/nowiki.texi | 1 + testdata/numlist.texi | 19 +++++++++++++++++++ testdata/para.texi | 5 +++++ testdata/unlist.texi | 26 ++++++++++++++++++++++++++ 20 files changed, 120 insertions(+) create mode 100644 testdata/bold.texi create mode 100644 testdata/boldit0.texi create mode 100644 testdata/boldit1.texi create mode 100644 testdata/boldit2.texi create mode 100644 testdata/boldit3.texi create mode 100644 testdata/colon.texi create mode 100644 testdata/deflist.texi create mode 100644 testdata/header0.texi create mode 100644 testdata/headings.texi create mode 100644 testdata/hz.texi create mode 100644 testdata/it.texi create mode 100644 testdata/itbold1.texi create mode 100644 testdata/itbold2.texi create mode 100644 testdata/itbold3.texi create mode 100644 testdata/link.texi create mode 100644 testdata/nowiki-tag.texi create mode 100644 testdata/nowiki.texi create mode 100644 testdata/numlist.texi create mode 100644 testdata/para.texi create mode 100644 testdata/unlist.texi (limited to 'testdata') diff --git a/testdata/bold.texi b/testdata/bold.texi new file mode 100644 index 0000000..2bcd4c2 --- /dev/null +++ b/testdata/bold.texi @@ -0,0 +1 @@ +now is the time for @b{all good} men to come to diff --git a/testdata/boldit0.texi b/testdata/boldit0.texi new file mode 100644 index 0000000..12f8b74 --- /dev/null +++ b/testdata/boldit0.texi @@ -0,0 +1 @@ +now is the time for @i{@b{all good}} men to come to diff --git a/testdata/boldit1.texi b/testdata/boldit1.texi new file mode 100644 index 0000000..486baf9 --- /dev/null +++ b/testdata/boldit1.texi @@ -0,0 +1 @@ +@b{a b @i{c} d} diff --git a/testdata/boldit2.texi b/testdata/boldit2.texi new file mode 100644 index 0000000..0ca1faa --- /dev/null +++ b/testdata/boldit2.texi @@ -0,0 +1 @@ +@b{@i{a b} c d} diff --git a/testdata/boldit3.texi b/testdata/boldit3.texi new file mode 100644 index 0000000..f594ba3 --- /dev/null +++ b/testdata/boldit3.texi @@ -0,0 +1 @@ +@b{a b @i{c d}} diff --git a/testdata/colon.texi b/testdata/colon.texi new file mode 100644 index 0000000..fc7e4e1 --- /dev/null +++ b/testdata/colon.texi @@ -0,0 +1,11 @@ + +@w{ }A colon (:) indents a line or paragraph. + +A newline starts a new paragraph. +Should only be used on talk pages. +For articles, you probably want the blockquote tag. + +@w{ }We use 1 colon to indent once. +@w{ }@w{ }We use 2 colons to indent twice. +@w{ }@w{ }@w{ }3 colons to indent 3 times, and so on. + diff --git a/testdata/deflist.texi b/testdata/deflist.texi new file mode 100644 index 0000000..73ff806 --- /dev/null +++ b/testdata/deflist.texi @@ -0,0 +1,12 @@ + +@table @asis +@item item 1 +definition 1 + +@item item 2 +definition 2-1 + +definition 2-2 + +@end table + diff --git a/testdata/header0.texi b/testdata/header0.texi new file mode 100644 index 0000000..ca5788d --- /dev/null +++ b/testdata/header0.texi @@ -0,0 +1,5 @@ + +@section Header +@node Header + +Paragraph. diff --git a/testdata/headings.texi b/testdata/headings.texi new file mode 100644 index 0000000..a9f372d --- /dev/null +++ b/testdata/headings.texi @@ -0,0 +1,22 @@ + +@section Section headings +@node Section headings + +@i{Headings} organize your writing into +sections. The Wiki software can automatically +generate a @ref{table of contents} from them. + +@subsection Subsection +@node Subsection + +Using more "equals" (=) signs creates a subsection. + +@subsubsection A smaller subsection +@node A smaller subsection + +Don't skip levels, +like from two to four equals signs. + +Start with 2 equals signs not 1 +because 1 creates H1 tags +which should be reserved for page title. diff --git a/testdata/hz.texi b/testdata/hz.texi new file mode 100644 index 0000000..e13f032 --- /dev/null +++ b/testdata/hz.texi @@ -0,0 +1,8 @@ +You can make horizontal dividing lines (----) +to separate text. + + +----- + +But you should usually use sections instead, +so that they go in the table of contents. diff --git a/testdata/it.texi b/testdata/it.texi new file mode 100644 index 0000000..e77394b --- /dev/null +++ b/testdata/it.texi @@ -0,0 +1 @@ +now is the time for @i{all good} men to come to diff --git a/testdata/itbold1.texi b/testdata/itbold1.texi new file mode 100644 index 0000000..d78c85c --- /dev/null +++ b/testdata/itbold1.texi @@ -0,0 +1 @@ +@i{a b @b{c} d} diff --git a/testdata/itbold2.texi b/testdata/itbold2.texi new file mode 100644 index 0000000..50eec2a --- /dev/null +++ b/testdata/itbold2.texi @@ -0,0 +1 @@ +@i{@b{a b} c d} diff --git a/testdata/itbold3.texi b/testdata/itbold3.texi new file mode 100644 index 0000000..afe3bf5 --- /dev/null +++ b/testdata/itbold3.texi @@ -0,0 +1 @@ +@i{a b @b{c d}} diff --git a/testdata/link.texi b/testdata/link.texi new file mode 100644 index 0000000..a9db988 --- /dev/null +++ b/testdata/link.texi @@ -0,0 +1 @@ +@ref{link,foo} is a simple link. diff --git a/testdata/nowiki-tag.texi b/testdata/nowiki-tag.texi new file mode 100644 index 0000000..0da9cab --- /dev/null +++ b/testdata/nowiki-tag.texi @@ -0,0 +1 @@ +A diff --git a/testdata/nowiki.texi b/testdata/nowiki.texi new file mode 100644 index 0000000..0b341a8 --- /dev/null +++ b/testdata/nowiki.texi @@ -0,0 +1 @@ +#:version=1.0@i{rest} of line diff --git a/testdata/numlist.texi b/testdata/numlist.texi new file mode 100644 index 0000000..738f72e --- /dev/null +++ b/testdata/numlist.texi @@ -0,0 +1,19 @@ + +@enumerate +@item @i{Numbered lists} are: +@enumerate +@item Very organized + +@item Easy to follow + +@end enumerate + +@end enumerate + +A newline marks the end of the list. + +@enumerate +@item New numbering starts with 1. + +@end enumerate + diff --git a/testdata/para.texi b/testdata/para.texi new file mode 100644 index 0000000..04395d4 --- /dev/null +++ b/testdata/para.texi @@ -0,0 +1,5 @@ +First paragraph consists of two sentences. +Each sentence occupies a line. + +Second paragraph consists of two sentences as well. +Each of them, again, occupies its own line. diff --git a/testdata/unlist.texi b/testdata/unlist.texi new file mode 100644 index 0000000..4cda102 --- /dev/null +++ b/testdata/unlist.texi @@ -0,0 +1,26 @@ + +@itemize @bullet +@item @i{Unordered lists} are easy to do: +@itemize @bullet +@item Start every line with a star. +@itemize @bullet +@item More stars indicate a deeper level. + +@end itemize +Previous item continues. + +@item A newline + +@end itemize + +@item in a list + +@end itemize + +marks the end of the list. + +@itemize @bullet +@item Of course you can start again. + +@end itemize + -- cgit v1.2.1