aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/eqn/define
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-26 20:11:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-26 20:11:45 +0000
commit268c88f5433d2a87d1eeab40076c8737b5786b08 (patch)
tree68e8d9e602c6edae03233351525fc92e01427177 /regress/eqn/define
parent49f05c164bb57720456a69a680c30c94727ee0cd (diff)
downloadmandoc-268c88f5433d2a87d1eeab40076c8737b5786b08.tar.gz
mandoc-268c88f5433d2a87d1eeab40076c8737b5786b08.tar.zst
mandoc-268c88f5433d2a87d1eeab40076c8737b5786b08.zip
catch up with the recent eqn(7) improvements
Diffstat (limited to 'regress/eqn/define')
-rw-r--r--regress/eqn/define/Makefile4
-rw-r--r--regress/eqn/define/font.in15
-rw-r--r--regress/eqn/define/font.out_ascii9
-rw-r--r--regress/eqn/define/invalid.out_ascii6
-rw-r--r--regress/eqn/define/quoted.in17
-rw-r--r--regress/eqn/define/quoted.out_ascii9
6 files changed, 55 insertions, 5 deletions
diff --git a/regress/eqn/define/Makefile b/regress/eqn/define/Makefile
index 9dfa749c..ef0820d2 100644
--- a/regress/eqn/define/Makefile
+++ b/regress/eqn/define/Makefile
@@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.1 2015/01/28 21:10:28 schwarze Exp $
-REGRESS_TARGETS = invalid infinite
-LINT_TARGETS = invalid infinite
+REGRESS_TARGETS = font infinite invalid quoted
+LINT_TARGETS = infinite invalid
.include <bsd.regress.mk>
diff --git a/regress/eqn/define/font.in b/regress/eqn/define/font.in
new file mode 100644
index 00000000..627c7e05
--- /dev/null
+++ b/regress/eqn/define/font.in
@@ -0,0 +1,15 @@
+.Dd June 25, 2017
+.Dt DEFINE-FONT 1
+.Os OpenBSD
+.Sh NAME
+.Nm define-font
+.Nd font selection takes place after define resolution
+.Sh DESCRIPTION
+initial text
+.EQ
+define alias 'sin x'
+alias
+define sin 'value'
+sin
+.EN
+final text
diff --git a/regress/eqn/define/font.out_ascii b/regress/eqn/define/font.out_ascii
new file mode 100644
index 00000000..57199257
--- /dev/null
+++ b/regress/eqn/define/font.out_ascii
@@ -0,0 +1,9 @@
+DEFINE-FONT(1) General Commands Manual DEFINE-FONT(1)
+
+NNAAMMEE
+ ddeeffiinnee--ffoonntt - font selection takes place after define resolution
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text sin _x _v_a_l_u_e final text
+
+OpenBSD June 25, 2017 OpenBSD
diff --git a/regress/eqn/define/invalid.out_ascii b/regress/eqn/define/invalid.out_ascii
index 0725dde2..62496650 100644
--- a/regress/eqn/define/invalid.out_ascii
+++ b/regress/eqn/define/invalid.out_ascii
@@ -4,11 +4,11 @@ NNAAMMEE
ddeeffiinnee--iinnvvaalliidd - invalid define and undef statements
DDEESSCCRRIIPPTTIIOONN
- define without variable name: 1/2 bruch eol
+ define without variable name: 1/2 _b_r_u_c_h eol
- define without value: 1/2 bruch eol
+ define without value: 1/2 _b_r_u_c_h eol
- define without value: 1/2 bruch eol
+ define without value: 1/2 _b_r_u_c_h eol
tdefine without variable name: eol
diff --git a/regress/eqn/define/quoted.in b/regress/eqn/define/quoted.in
new file mode 100644
index 00000000..a98733f1
--- /dev/null
+++ b/regress/eqn/define/quoted.in
@@ -0,0 +1,17 @@
+.Dd June 25, 2017
+.Dt DEFINE-QUOTED 1
+.Os OpenBSD
+.Sh NAME
+.Nm define-quoted
+.Nd interaction of the define control statement with quoting
+.Sh DESCRIPTION
+initial text
+.EQ
+define unquoted 'sin'
+"unquoted"
+unquoted
+define quoted '"sin"'
+"quoted"
+quoted
+.EN
+final text
diff --git a/regress/eqn/define/quoted.out_ascii b/regress/eqn/define/quoted.out_ascii
new file mode 100644
index 00000000..ed86222f
--- /dev/null
+++ b/regress/eqn/define/quoted.out_ascii
@@ -0,0 +1,9 @@
+DEFINE-QUOTED(1) General Commands Manual DEFINE-QUOTED(1)
+
+NNAAMMEE
+ ddeeffiinnee--qquuootteedd - interaction of the define control statement with quoting
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text _u_n_q_u_o_t_e_d sin _q_u_o_t_e_d _s_i_n final text
+
+OpenBSD June 25, 2017 OpenBSD