From bc84dd1eab78e96ccc7dabd7561cfaf57f165951 Mon Sep 17 00:00:00 2001 From: John Ankarstrom Date: Sat, 3 Jul 2021 19:56:16 +0200 Subject: Move mk into separate directory --- mk/t/ne.t | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 mk/t/ne.t (limited to 'mk/t/ne.t') diff --git a/mk/t/ne.t b/mk/t/ne.t new file mode 100644 index 0000000..ac318a7 --- /dev/null +++ b/mk/t/ne.t @@ -0,0 +1,147 @@ +.so k.tmac +.so t.tmac +. +.nr mb 1i +. +.t +ne.t: test space requests +.p +This file tests the +.c w +macro. +. +.\" helper macros +. +.\" make space at bottom of page +.de @ +. rs +. sp |\n(.pu-\n(mbu-\\$1-1u +. nr a \\n% +.. +. +.\" write 's pppp' +.de *spppp +. s +. nr s \\n% +Test \\nt +. p +. nr p \\n% +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do +eiusmod tempor incididunt ut labore et dolore magna aliqua. +. nr pp \\n% +Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris +nisi ut aliquip ex ea commodo consequat. +Duis aute irure dolor in reprehenderit in voluptate velit esse +cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat +cupidatat non proident, sunt in culpa qui officia deserunt mollit +anim id est laborum. +.. +.de *sllll +. s +Test \\nt +. nr s \\n% +. l +. nr l \\n% +first line +. nr ll \\n% +second line +. nr lll \\n% +third line +fourth line +.. +. +.\" run tests +. +.test s pp +0u +.bp +.@ 39600u +.w s pp +.*spppp +.assert (`na=`ns)&(`ns=`np)&(`np=`n(pp) +. +.test s pp +1u +.bp +.@ 39600u +.sp 1u +.w s pp +.*spppp +.assert (`na<`ns)&(`ns=`np)&(`np=`n(pp) +. +.test s pp +2u +.bp +.@ 39600u +.sp 2u +.w s pp +.*spppp +.assert (`na<`ns)&(`ns=`np)&(`np=`n(pp) +. +.test s p +0u +.bp +.@ 27600u +.w s p +.*spppp +.assert (`na=`ns)&(`ns=`np)&(`np<`n(pp) +. +.test s p +1u +.bp +.@ 27600u +.sp 1u +.w s p +.*spppp +.assert (`na<`ns)&(`ns=`np)&(`np=`n(pp) +. +.test s p +2u +.bp +.@ 27600u +.sp 2u +.w s p +.*spppp +.assert (`na<`ns)&(`ns=`np)&(`np=`n(pp) +. +.test s l +0u +.bp +.@ 27600u +.w s l +.*sllll +.assert (`na=`ns)&(`ns=`nl)&(`nl<`n(ll)&(`n(ll=`n[lll]) +. +.test s l +1u +.bp +.@ 27600u +.sp 1u +.w s l +.*sllll +.assert (`na<`ns)&(`ns=`nl)&(`nl=`n(ll)&(`n(ll=`n[lll]) +. +.test s l +2u +.bp +.@ 27600u +.sp 2u +.w s l +.*sllll +.assert (`na<`ns)&(`ns=`nl)&(`nl=`n(ll)&(`n(ll=`n[lll]) +. +.test s ll +0u +.bp +.@ 38600u +.w s ll +.*sllll +.assert (`na=`ns)&(`ns=`nl)&(`nl=`n(ll)&(`n(ll<`n[lll]) +. +.test s ll +1u +.bp +.@ 38600u +.sp 1u +.w s ll +.*sllll +.assert (`na<`ns)&(`ns=`nl)&(`nl=`n(ll)&(`n(ll=`n[lll]) +. +.test s ll +2u +.bp +.@ 38600u +.sp 2u +.w s ll +.*sllll +.assert (`na<`ns)&(`ns=`nl)&(`nl=`n(ll)&(`n(ll=`n[lll]) +. +.end -- cgit v1.2.3