diff options
author | 2017-02-08 03:02:13 +0000 | |
---|---|---|
committer | 2017-02-08 03:02:13 +0000 | |
commit | d9f0f81c846a8405c29870e4a8379e5e79d1cad3 (patch) | |
tree | c07efd74ac58650949dc67576001a720e688319f /regress/roff/esc/B.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/esc/B.in')
-rw-r--r-- | regress/roff/esc/B.in | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/regress/roff/esc/B.in b/regress/roff/esc/B.in new file mode 100644 index 00000000..97ac39c5 --- /dev/null +++ b/regress/roff/esc/B.in @@ -0,0 +1,36 @@ +.Dd July 6, 2014 +.Dt ESC-B 1 +.Os OpenBSD +.Sh NAME +.Nm esc-B +.Nd the roff escape B sequence: validate numerical expression +.Sh DESCRIPTION +empty: \B'' +.br +digit: \B'0' +.br +no number: \B'no number' +.br +trailing garbage: \B'1X' +.br +trailing operator: \B'1+' +.br +infix operator: \B'1+1' +.br +infix and trailing operator: \B'1+1+' +.br +chain of operations: \B'1+2+3+4' +.br +trailing para: \B'1+(' +.br +unclosed para: \B'(1' +.br +empty pair of parentheses: \B'()' +.br +parentheses containing number: \B'(42)' +.br +complex expression: \B'3+(3*(5==5*2)*4)+(3*5)/2' +.br +other delimiter: \Bx1+1x +.br +no closing delimiter: \B'1+1 |