summaryrefslogtreecommitdiff
path: root/Build/source/texk/mendexk/tests
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-09 21:27:28 +0000
committerKarl Berry <karl@freefriends.org>2021-05-09 21:27:28 +0000
commit5fefcba6e29705444628d35033c7fac17e401e51 (patch)
tree6f623a0d1bf3b69d86aa3c09523caac44c86c1fc /Build/source/texk/mendexk/tests
parentd0c57b555c102fbeee2fc27163d46face6ec3afd (diff)
ensure signed comparisons are signed; new test
git-svn-id: svn://tug.org/texlive/trunk@59151 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk/tests')
-rwxr-xr-xBuild/source/texk/mendexk/tests/mendex.test18
-rw-r--r--Build/source/texk/mendexk/tests/rangetwo.idx2
-rw-r--r--Build/source/texk/mendexk/tests/rangetwo.ind5
-rw-r--r--Build/source/texk/mendexk/tests/rangetwo.ist2
4 files changed, 22 insertions, 5 deletions
diff --git a/Build/source/texk/mendexk/tests/mendex.test b/Build/source/texk/mendexk/tests/mendex.test
index 99c73507fe9..26441808bf4 100755
--- a/Build/source/texk/mendexk/tests/mendex.test
+++ b/Build/source/texk/mendexk/tests/mendex.test
@@ -1,6 +1,6 @@
#! /bin/sh -vx
# $Id$
-# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2017-2021 Karl Berry <tex-live@tug.org>
# Copyright 2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
@@ -24,13 +24,21 @@ cat $srcdir/tests/uni.idx | \
>uni.ind2 2>uni.ilg2 \
&& diff $srcdir/tests/uni.ind uni.ind2 || exit 1
-# test for page_precedence
-./mendex -s $srcdir/tests/pprec0.ist $srcdir/tests/pprecA.idx -o pprecA-0.ind1 -t pprecA-0.ilg \
+# test for two-element range suffix_2p
+./mendex -s $srcdir/tests/rangetwo.ist $srcdir/tests/rangetwo.idx \
+ -o rangetwo.ind1 -t rangetwo.ilg \
+ && diff $srcdir/tests/rangetwo.ind rangetwo.ind1 || exit 1
+
+# test for page_precedence and suffix_3p
+./mendex -s $srcdir/tests/pprec0.ist $srcdir/tests/pprecA.idx \
+ -o pprecA-0.ind1 -t pprecA-0.ilg \
&& diff $srcdir/tests/pprecA-0.ind pprecA-0.ind1 || exit 1
-./mendex -s $srcdir/tests/pprec1.ist $srcdir/tests/pprecA.idx -o pprecA-1.ind1 -t pprecA-1.ilg \
+./mendex -s $srcdir/tests/pprec1.ist $srcdir/tests/pprecA.idx \
+ -o pprecA-1.ind1 -t pprecA-1.ilg \
&& diff $srcdir/tests/pprecA-1.ind pprecA-1.ind1 || exit 1
-./mendex -s $srcdir/tests/pprec2.ist $srcdir/tests/pprecA.idx -o pprecA-2.ind1 -t pprecA-2.ilg \
+./mendex -s $srcdir/tests/pprec2.ist $srcdir/tests/pprecA.idx \
+ -o pprecA-2.ind1 -t pprecA-2.ilg \
&& diff $srcdir/tests/pprecA-2.ind pprecA-2.ind1 || exit 1
diff --git a/Build/source/texk/mendexk/tests/rangetwo.idx b/Build/source/texk/mendexk/tests/rangetwo.idx
new file mode 100644
index 00000000000..d941f7e8315
--- /dev/null
+++ b/Build/source/texk/mendexk/tests/rangetwo.idx
@@ -0,0 +1,2 @@
+\indexentry{entryA}{1}
+\indexentry{entryA}{2}
diff --git a/Build/source/texk/mendexk/tests/rangetwo.ind b/Build/source/texk/mendexk/tests/rangetwo.ind
new file mode 100644
index 00000000000..1119d2fa8e9
--- /dev/null
+++ b/Build/source/texk/mendexk/tests/rangetwo.ind
@@ -0,0 +1,5 @@
+\begin{theindex}
+
+ \item entryA, 1[[sfx2p]]
+
+\end{theindex}
diff --git a/Build/source/texk/mendexk/tests/rangetwo.ist b/Build/source/texk/mendexk/tests/rangetwo.ist
new file mode 100644
index 00000000000..3e986c8935d
--- /dev/null
+++ b/Build/source/texk/mendexk/tests/rangetwo.ist
@@ -0,0 +1,2 @@
+suffix_2p "[[sfx2p]]"
+