Skip to content

Commit 097276b

Browse files
committed
Use separate expected output for old pandoc versions
1 parent 886dcfa commit 097276b

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
run: apk add make
4343

4444
- name: Test
45-
run: make test
45+
run: make test PANDOC_VERSION=${{ matrix.pandoc }}

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
DIFF ?= diff
22
PANDOC ?= pandoc
33

4+
# Use special expected output file if it exists.
5+
expected_output = test/expected.$(PANDOC_VERSION).txt
6+
ifeq ($(wildcard $(expected_output)),)
7+
expected_output = test/expected.txt
8+
endif
9+
410
test: test/input.md multiple-bibliographies.lua
511
@$(PANDOC) -d test/test.yaml \
6-
| $(DIFF) - test/expected.txt
12+
| $(DIFF) $(expected_output) -
713

814
.PHONY: test

test/expected.2.17.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Multiple Bibliographies Demo
2+
3+
Nietzsche (1872), Bellori (1672)
4+
5+
References
6+
7+
Bellori. 1672. Le Vite de’ Pittori, Scultori e Architetti Moderni.
8+
9+
Nietzsche, Friedrich. 1872. Die Geburt Der Tragödie Aus Dem Geiste Der
10+
Musik.
11+
12+
Recommended Reading
13+
14+
Bätschmann, Oskar. 1985. Pygmalion Als Betrachter.
15+
16+
Knuth, Donald E. 1986. The TeXbook.

0 commit comments

Comments
 (0)