aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-21 17:47:01 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-21 17:47:01 +0000
commit11b49313cb7eb9bb5033c883fdbfb07903a28a0a (patch)
treed12142e1c4e6e6b99ad4d24acc666c026d84eea5
parenta90a19d8ea1fd9c75174c833a56f4c68dae450c4 (diff)
downloadmandoc-11b49313cb7eb9bb5033c883fdbfb07903a28a0a.tar.gz
mandoc-11b49313cb7eb9bb5033c883fdbfb07903a28a0a.tar.zst
mandoc-11b49313cb7eb9bb5033c883fdbfb07903a28a0a.zip
merge a test update from OpenBSD that was forgotten in April
-rw-r--r--regress/roff/nr/incr.in9
-rw-r--r--regress/roff/nr/incr.out_ascii3
2 files changed, 11 insertions, 1 deletions
diff --git a/regress/roff/nr/incr.in b/regress/roff/nr/incr.in
index a03493ff..d802c126 100644
--- a/regress/roff/nr/incr.in
+++ b/regress/roff/nr/incr.in
@@ -1,4 +1,4 @@
-.\" $OpenBSD: undef.in,v 1.1 2018/04/09 22:26:25 schwarze Exp $
+.\" $OpenBSD: incr.in,v 1.1 2018/04/10 00:52:21 schwarze Exp $
.TH NR-INCR 1 "April 10, 2018"
.SH NAME
nr-incr \- increment a number register by accessing it
@@ -28,3 +28,10 @@ Down in negative steps is up:
\n-[myr]
\n-[myr]
\n-[myr]
+.PP
+.nr myr 42
+Go to some other value,
+then continue incrementing with an unchanged (negative) step size:
+\n+[myr]
+\n+[myr]
+\n+[myr]
diff --git a/regress/roff/nr/incr.out_ascii b/regress/roff/nr/incr.out_ascii
index d039d5b1..28797ca4 100644
--- a/regress/roff/nr/incr.out_ascii
+++ b/regress/roff/nr/incr.out_ascii
@@ -14,6 +14,9 @@ DDEESSCCRRIIPPTTIIOONN
Down in negative steps is up: -1 1 3 5
+ Go to some other value, then continue incrementing with an unchanged
+ (negative) step size: 40 38 36
+
OpenBSD April 10, 2018 NR-INCR(1)