Skip to content

Commit fa30121

Browse files
smancilltarleb
authored andcommitted
table-short-captions: fix outdated tests
The generated output was changed by by 7a49118 (Fix #48 by using \let=\relax and \@ifundefined, 2019-03-31).
1 parent b28dbd3 commit fa30121

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

table-short-captions/test-table-short-captions-crossref.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ assert_contains <<EOF
5050
caption} of tbl3, which is \textbf{unlisted}.}\tabularnewline
5151
EOF
5252
assert_contains <<EOF
53-
\undef\pandoctableshortcapt
53+
\let\pandoctableshortcapt\relax
5454
EOF
5555

5656
# Test 4
@@ -66,7 +66,7 @@ caption} of tbl4, which has an \textbf{overriding} short-caption. This
6666
is the expected usage.}\tabularnewline
6767
EOF
6868
assert_contains <<EOF
69-
\undef\pandoctableshortcapt
69+
\let\pandoctableshortcapt\relax
7070
EOF
7171

7272
# Test 5
@@ -115,5 +115,5 @@ caption} of tbl9, which is \textbf{unlisted}, yet has a
115115
short-caption.}\tabularnewline
116116
EOF
117117
assert_contains <<EOF
118-
\undef\pandoctableshortcapt
118+
\let\pandoctableshortcapt\relax
119119
EOF

table-short-captions/test-table-short-captions.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ assert_contains <<EOF
4646
\textbf{unlisted}. \{\#tbl:tbl-label3\}}\tabularnewline
4747
EOF
4848
assert_contains <<EOF
49-
\undef\pandoctableshortcapt
49+
\let\pandoctableshortcapt\relax
5050
EOF
5151

5252
# Test 4
@@ -59,7 +59,7 @@ an \textbf{overriding} short-caption. This is the expected usage.
5959
\{\#tbl:tbl-label4\}}\tabularnewline
6060
EOF
6161
assert_contains <<EOF
62-
\undef\pandoctableshortcapt
62+
\let\pandoctableshortcapt\relax
6363
EOF
6464

6565
# Test 5
@@ -101,5 +101,5 @@ assert_contains <<EOF
101101
\{\#tbl:tbl-label9\}}\tabularnewline
102102
EOF
103103
assert_contains <<EOF
104-
\undef\pandoctableshortcapt
104+
\let\pandoctableshortcapt\relax
105105
EOF

0 commit comments

Comments
 (0)