aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Fo
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-05 19:59:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-05 19:59:33 +0000
commitfa99e371284a414ce8b13892006df003d31a0e37 (patch)
tree77511f9108c44772a3c5e9517e7c7bb8e93e1879 /regress/mdoc/Fo
parentc5e1be4e43835ff8cb2512039246bd4ea5ec4c2e (diff)
downloadmandoc-fa99e371284a414ce8b13892006df003d31a0e37.tar.gz
mandoc-fa99e371284a414ce8b13892006df003d31a0e37.tar.zst
mandoc-fa99e371284a414ce8b13892006df003d31a0e37.zip
first batch of -T markdown tests
Diffstat (limited to 'regress/mdoc/Fo')
-rw-r--r--regress/mdoc/Fo/Makefile2
-rw-r--r--regress/mdoc/Fo/basic.out_markdown22
-rw-r--r--regress/mdoc/Fo/break.out_markdown45
-rw-r--r--regress/mdoc/Fo/eos.out_markdown17
-rw-r--r--regress/mdoc/Fo/font.out_markdown18
-rw-r--r--regress/mdoc/Fo/noarg.out_markdown32
-rw-r--r--regress/mdoc/Fo/nohead.out_markdown13
-rw-r--r--regress/mdoc/Fo/obsolete.out_markdown15
-rw-r--r--regress/mdoc/Fo/punct.out_markdown12
-rw-r--r--regress/mdoc/Fo/section.out_markdown114
-rw-r--r--regress/mdoc/Fo/warn.out_markdown15
11 files changed, 305 insertions, 0 deletions
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 \*&zwnj;*
+**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 \*&zwnj;*
+**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 \*&zwnj;*
+**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