From: schwarze Date: Tue, 24 Dec 2013 16:01:15 +0000 (+0000) Subject: More .Bk tests to lessen the risk of upcoming work. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ab5df186eaa43a53392a0efcc5416fe6e2cb37b2;p=openbsd More .Bk tests to lessen the risk of upcoming work. --- diff --git a/regress/usr.bin/mandoc/mdoc/Bk/Makefile b/regress/usr.bin/mandoc/mdoc/Bk/Makefile index 5e1aad4f7b6..ac178847d18 100644 --- a/regress/usr.bin/mandoc/mdoc/Bk/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Bk/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.4 2012/11/19 02:14:39 schwarze Exp $ +# $OpenBSD: Makefile,v 1.5 2013/12/24 16:01:15 schwarze Exp $ -REGRESS_TARGETS = break synopsis badarg +REGRESS_TARGETS = break inputlines synopsis badarg lines SKIP_TMAN ?= badarg diff --git a/regress/usr.bin/mandoc/mdoc/Bk/inputlines.in b/regress/usr.bin/mandoc/mdoc/Bk/inputlines.in new file mode 100644 index 00000000000..6d9f4272a4f --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bk/inputlines.in @@ -0,0 +1,76 @@ +.Dd December 24, 2010 +.Dt BK-INPUTLINES 1 +.Os OpenBSD +.Sh NAME +.Nm Bk-inputlines +.Nd effect of input lines breaks on word keeps +.Sh SYNOPSIS +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo Oo No a Oc Oo No b Oc Oc Pq one line +.Ek +.Pp +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo +.Oo No a Oc Oo No b Oc Oc Pq "break after first Oo" +.Ek +.Pp +.\" XXX does not work yet +.ig +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo Oo +.No a Oc Oo b Oc Oc Pq "break after second Oo" +.Ek +.Pp +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo Oo No a +.Oc Oo No b Oc Oc Pq "break before first Oc" +.Ek +.Pp +.. +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo Oo No a Oc +.Oo No b Oc Oc Pq "break after first Oc" +.Ek +.Pp +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo Oo No a Oc Oo +.No b Oc Oc Pq "break after third Oo" +.Ek +.Pp +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo a No b Oc +.Ek +.Pp +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo a +.No b Oc +.Ek +.Pp +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo a Oc No b +.Ek +.Pp +.Nm +.Ar x x x x x x x x x x x x x x x x x x x x x x x x x x x x +.Bk -words +.Oo a Oc +.No b +.Ek diff --git a/regress/usr.bin/mandoc/mdoc/Bk/inputlines.out_ascii b/regress/usr.bin/mandoc/mdoc/Bk/inputlines.out_ascii new file mode 100644 index 00000000000..c6c1deba57a --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bk/inputlines.out_ascii @@ -0,0 +1,31 @@ +BK-INPUTLINES(1) OpenBSD Reference Manual BK-INPUTLINES(1) + +NNAAMMEE + BBkk--iinnppuuttlliinneess - effect of input lines breaks on word keeps + +SSYYNNOOPPSSIISS + BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x + [[a] [b]] (one line) + + BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x + [[a] [b]] (break after first Oo) + + BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x [[a] + [b]] (break after first Oc) + + BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x + [[a] [b]] (break after third Oo) + + BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x + [a b] + + BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x [a + b] + + BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x + [a] b + + BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x _x [a] + b + +OpenBSD December 24, 2010 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Bk/lines.in b/regress/usr.bin/mandoc/mdoc/Bk/lines.in new file mode 100644 index 00000000000..4533242c455 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bk/lines.in @@ -0,0 +1,88 @@ +.Dd April 12, 2010 +.Dt BK-LINES 1 +.Os OpenBSD +.Sh NAME +.Nm Bk-lines +.Nd handling of line keeps +.Sh DESCRIPTION +.Bd -literal +1 +2 +3 +4 +5 +6 +7 +8 +9 +11 +12 +13 +14 +15 +16 +17 +18 +19 +21 +22 +23 +24 +25 +26 +27 +28 +29 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +.Ed +.Ss with keep +.Bk -lines +.Bd -literal +1 +2 +3 +4 +5 +6 +7 +8 +9 +11 +12 +13 +14 +15 +16 +17 +18 +19 +21 +22 +23 +24 +25 +26 +27 +28 +29 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +.Ed +.Ek diff --git a/regress/usr.bin/mandoc/mdoc/Bk/lines.out_ascii b/regress/usr.bin/mandoc/mdoc/Bk/lines.out_ascii new file mode 100644 index 00000000000..eac37faef48 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bk/lines.out_ascii @@ -0,0 +1,84 @@ +BK-LINES(1) OpenBSD Reference Manual BK-LINES(1) + +NNAAMMEE + BBkk--lliinneess - handling of line keeps + +DDEESSCCRRIIPPTTIIOONN + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + + wwiitthh kkeeeepp + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + +OpenBSD April 12, 2010 OpenBSD