From fa99e371284a414ce8b13892006df003d31a0e37 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 5 Mar 2017 19:59:33 +0000 Subject: first batch of -T markdown tests --- regress/mdoc/Fo/Makefile | 2 + regress/mdoc/Fo/basic.out_markdown | 22 +++++++ regress/mdoc/Fo/break.out_markdown | 45 ++++++++++++++ regress/mdoc/Fo/eos.out_markdown | 17 +++++ regress/mdoc/Fo/font.out_markdown | 18 ++++++ regress/mdoc/Fo/noarg.out_markdown | 32 ++++++++++ regress/mdoc/Fo/nohead.out_markdown | 13 ++++ regress/mdoc/Fo/obsolete.out_markdown | 15 +++++ regress/mdoc/Fo/punct.out_markdown | 12 ++++ regress/mdoc/Fo/section.out_markdown | 114 ++++++++++++++++++++++++++++++++++ regress/mdoc/Fo/warn.out_markdown | 15 +++++ 11 files changed, 305 insertions(+) create mode 100644 regress/mdoc/Fo/basic.out_markdown create mode 100644 regress/mdoc/Fo/break.out_markdown create mode 100644 regress/mdoc/Fo/eos.out_markdown create mode 100644 regress/mdoc/Fo/font.out_markdown create mode 100644 regress/mdoc/Fo/noarg.out_markdown create mode 100644 regress/mdoc/Fo/nohead.out_markdown create mode 100644 regress/mdoc/Fo/obsolete.out_markdown create mode 100644 regress/mdoc/Fo/punct.out_markdown create mode 100644 regress/mdoc/Fo/section.out_markdown create mode 100644 regress/mdoc/Fo/warn.out_markdown (limited to 'regress/mdoc/Fo') diff --git a/regress/mdoc/Fo/Makefile b/regress/mdoc/Fo/Makefile index 71242c8e..f4458b9c 100644 --- a/regress/mdoc/Fo/Makefile +++ b/regress/mdoc/Fo/Makefile @@ -3,6 +3,8 @@ REGRESS_TARGETS = basic break eos font noarg nohead REGRESS_TARGETS += obsolete punct section warn LINT_TARGETS = noarg nohead obsolete warn +MARKDOWN_TARGETS = basic break eos font noarg nohead +MARKDOWN_TARGETS += obsolete punct section warn # groff-1.22.3 defects: # - .Fo without an argument prints unbalanced parentheses diff --git a/regress/mdoc/Fo/basic.out_markdown b/regress/mdoc/Fo/basic.out_markdown new file mode 100644 index 00000000..9ac884d1 --- /dev/null +++ b/regress/mdoc/Fo/basic.out_markdown @@ -0,0 +1,22 @@ +FO-BASIC(1) - General Commands Manual + +# NAME + +**Fo-basic** - function blocks + +# SYNOPSIS + +*double* +**sin**(*double x*); + +*double* +**atan2**(*double y*, *double x*); + +# DESCRIPTION + +*double* +**sin**(*double x*) +*double* +**atan2**(*double y*, *double x*) + +OpenBSD - July 7, 2012 diff --git a/regress/mdoc/Fo/break.out_markdown b/regress/mdoc/Fo/break.out_markdown new file mode 100644 index 00000000..3a551bf8 --- /dev/null +++ b/regress/mdoc/Fo/break.out_markdown @@ -0,0 +1,45 @@ +FO-BREAK(1) - General Commands Manual + +# NAME + +**Fo-break** - line breaks in function blocks + +# SYNOPSIS + +**using Fn:** + +*my\_long\_return\_type \*‌* +**my\_long\_function**(*my\_long\_type first\_argument*, *my\_long\_type second\_argument*); + +*void* +**this function name is so ridiculously long that it will not fit on the line**(*my\_long\_type first\_argument*, *my\_long\_type second\_argument*, *my\_long\_type third\_argument*); + +**using Fo and single-argument Fa:** + +*my\_long\_return\_type \*‌* +**my\_long\_function**(*my\_long\_type first\_argument*, +*my\_long\_type second\_argument*); + +*void* +**this function name is so ridiculously long that it will not fit on the line**(*my\_long\_type first\_argument*, +*my\_long\_type second\_argument*, +*my\_long\_type third\_argument*); + +**using Fo and multi-argument Fa:** + +*my\_long\_return\_type \*‌* +**my\_long\_function**(*my\_long\_type first\_argument*, *my\_long\_type second\_argument*); + +# DESCRIPTION + +using Fn: +**my\_long\_function**(*my\_long\_type first\_argument*, *my\_long\_type second\_argument*) + +using Fo and single-argument Fa: +**my\_long\_function**(*my\_long\_type first\_argument*, +*my\_long\_type second\_argument*) + +using Fo and multi-argument Fa: +**my\_long\_function**(*my\_long\_type first\_argument*, *my\_long\_type second\_argument*) + +OpenBSD - April 8, 2014 diff --git a/regress/mdoc/Fo/eos.out_markdown b/regress/mdoc/Fo/eos.out_markdown new file mode 100644 index 00000000..81e0a477 --- /dev/null +++ b/regress/mdoc/Fo/eos.out_markdown @@ -0,0 +1,17 @@ +FO-EOS(1) - General Commands Manual + +# NAME + +**Fo-eos** - end of sentence handling after a function block + +# DESCRIPTION + +As an example of a trigonometric function, let us consider +**double sin**(*double x*). +Or do you prefer +*double* +**cos**(*double*, *x*) +. +Either will do. + +OpenBSD - November 17, 2012 diff --git a/regress/mdoc/Fo/font.out_markdown b/regress/mdoc/Fo/font.out_markdown new file mode 100644 index 00000000..d36e0b8a --- /dev/null +++ b/regress/mdoc/Fo/font.out_markdown @@ -0,0 +1,18 @@ +FO-FONT(1) - General Commands Manual + +# NAME + +**Fo-font** - font nesting in function blocks + +# DESCRIPTION + +**prefix*name*suffix**(*type arg*) +trailing text + +**prefix*name*suffix**(*type arg*) +trailing text + +**function**(*prefix**bold**suffix*) +trailing text + +OpenBSD - July 9, 2012 diff --git a/regress/mdoc/Fo/noarg.out_markdown b/regress/mdoc/Fo/noarg.out_markdown new file mode 100644 index 00000000..36a83507 --- /dev/null +++ b/regress/mdoc/Fo/noarg.out_markdown @@ -0,0 +1,32 @@ +FN-NOARG(1) - General Commands Manual + +# NAME + +**Fn-noarg** - function name macro without arguments + +# DESCRIPTION + +with arguments: +*int* +**abs**(*int i*) +*long* +**labs**(*long i*) +void function arguments: +*int* +**rand**() +*long* +**random**() +*u\_int32\_t* +**arc4random**() +no name arguments: +*int* +no type arguments: +**abs**(*int i*) +no type and void function arguments: +**rand**() +**random**() +**arc4random**() +no arguments at all: +end of test document + +OpenBSD - July 12, 2012 diff --git a/regress/mdoc/Fo/nohead.out_markdown b/regress/mdoc/Fo/nohead.out_markdown new file mode 100644 index 00000000..28e9b7db --- /dev/null +++ b/regress/mdoc/Fo/nohead.out_markdown @@ -0,0 +1,13 @@ +FO-NOHEAD(1) - General Commands Manual + +# NAME + +**Fo-nohead** - function block macro without head argument + +# DESCRIPTION + +initial text +*int*(*int*) +final text + +OpenBSD - February 5, 2015 diff --git a/regress/mdoc/Fo/obsolete.out_markdown b/regress/mdoc/Fo/obsolete.out_markdown new file mode 100644 index 00000000..be3e7f13 --- /dev/null +++ b/regress/mdoc/Fo/obsolete.out_markdown @@ -0,0 +1,15 @@ +FO-OBSOLETE(1) - General Commands Manual + +# NAME + +**Fo-obsolete** - obsolete function macros + +# DESCRIPTION + +old function type +*fortran* + +function return value +*value* + +OpenBSD - July 2, 2014 diff --git a/regress/mdoc/Fo/punct.out_markdown b/regress/mdoc/Fo/punct.out_markdown new file mode 100644 index 00000000..3128aeef --- /dev/null +++ b/regress/mdoc/Fo/punct.out_markdown @@ -0,0 +1,12 @@ +FO-PUNCT(1) - General Commands Manual + +# NAME + +**Fo-punct** - punctuation on function name input lines + +# DESCRIPTION + +*double* +**sin**(), cos + +OpenBSD - November 20, 2014 diff --git a/regress/mdoc/Fo/section.out_markdown b/regress/mdoc/Fo/section.out_markdown new file mode 100644 index 00000000..10d3dbb9 --- /dev/null +++ b/regress/mdoc/Fo/section.out_markdown @@ -0,0 +1,114 @@ +FN-SECTION(3) - Library Functions Manual + +# NAME + +**Fn-section** - special handling of Fn in various sections + +# SYNOPSIS + +*int* +**abs**(*int j*); + +*double* +**sin**(*double x*); + +# DESCRIPTION + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# RETURN VALUES + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# ENVIRONMENT + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# FILES + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# EXAMPLES + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# DIAGNOSTICS + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# ERRORS + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# SEE ALSO + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# STANDARDS + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# HISTORY + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# AUTHORS + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# CAVEATS + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# BUGS + +*int* +**abs**(*int j*) +*double* +**sin**(*double x*) + +# CUSTOM + +*int* +**abs**(*int j*); + +*double* +**sin**(*double x*); + +OpenBSD - April 7, 2010 diff --git a/regress/mdoc/Fo/warn.out_markdown b/regress/mdoc/Fo/warn.out_markdown new file mode 100644 index 00000000..d27be5bc --- /dev/null +++ b/regress/mdoc/Fo/warn.out_markdown @@ -0,0 +1,15 @@ +FO-WARN(1) - General Commands Manual + +# NAME + +**Fo-warn** - warnings related to function blocks + +# SYNOPSIS + +*double* +**sin()**(*double x*); + +*double* +**atan2**(*double y, double x*); + +OpenBSD - October 11, 2014 -- cgit v1.2.3-56-ge451