From 268c88f5433d2a87d1eeab40076c8737b5786b08 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 26 Jun 2017 20:11:45 +0000 Subject: catch up with the recent eqn(7) improvements --- regress/eqn/define/Makefile | 4 ++-- regress/eqn/define/font.in | 15 +++++++++++++++ regress/eqn/define/font.out_ascii | 9 +++++++++ regress/eqn/define/invalid.out_ascii | 6 +++--- regress/eqn/define/quoted.in | 17 +++++++++++++++++ regress/eqn/define/quoted.out_ascii | 9 +++++++++ 6 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 regress/eqn/define/font.in create mode 100644 regress/eqn/define/font.out_ascii create mode 100644 regress/eqn/define/quoted.in create mode 100644 regress/eqn/define/quoted.out_ascii (limited to 'regress/eqn/define') 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 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 -- cgit v1.2.3-56-ge451