diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
commit | d9f0f81c846a8405c29870e4a8379e5e79d1cad3 (patch) | |
tree | c07efd74ac58650949dc67576001a720e688319f /regress/roff/nr/eval.in | |
parent | cdbb1fca07752eb230e5219c22e9e65075c85b82 (diff) | |
download | mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.gz mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.zst mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.zip |
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this,
literally for years.
Diffstat (limited to 'regress/roff/nr/eval.in')
-rw-r--r-- | regress/roff/nr/eval.in | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/regress/roff/nr/eval.in b/regress/roff/nr/eval.in new file mode 100644 index 00000000..16bf24e3 --- /dev/null +++ b/regress/roff/nr/eval.in @@ -0,0 +1,67 @@ +.TH NR-EVAL 1 "April 7, 2014" OpenBSD +.SH NAME +nr-eval \- numeric expressions in assignments to number registers +.SH DESCRIPTION +.nr mr 1 +1: \n(mr +.br +.nr mr nonumber +nonumber: \n(mr +.br +.nr mr 3X +3X: \n(mr +.br +.nr mr 4+ +4+: \n(mr +.br +.nr mr 2+3 +2+3: \n(mr +.br +.nr mr 1+1: +1+1:: \n(mr +.br +.nr mr 10-3 +10-3: \n(mr +.br +.nr mr 4*2 +4*2: \n(mr +.br +.nr mr 27/3 +27/3: \n(mr +.br +.nr mr 58%16 +58%16: \n(mr +.br +.nr mr 11<?20 +11<?20: \n(mr +.br +.nr mr 30<?12 +30<?12: \n(mr +.br +.nr mr 7>?13 +7>?13: \n(mr +.br +.nr mr 14>?6 +14>?6: \n(mr +.br +.nr mr 2+3*3 +2+3*3: \n(mr +.br +.nr mr 16+( +para at eol: \n(mr +.br +.nr mr (17 +unclosed para: \n(mr +.br +.nr mr (18) +(18): \n(mr +.br +.nr mr ( 25 - 6 ) +( 25 - 6 ): \n(mr +.br +.nr mr 11+( 3*3 ) +11+( 3*3 ): \n(mr +.br +.nr mr 3+(3*(5==5*2)*4)+(3*5)/2 +3+(3*(5==5*2)*4)+(3*5)/2: \n(mr +.br |