Skip to content

Commit d477060

Browse files
committed
Rename test directories for clearer diff output
1 parent 7fa5bc2 commit d477060

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repos:
33
rev: 1.5.4
44
hooks:
55
- id: duolingo
6-
exclude: test/before
6+
exclude: test/malformatted
77
- repo: local
88
hooks:
99
- id: test

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ shell:
4747
.PHONY: test
4848
test:
4949
docker run --rm -v "$${PWD}/test:/test" "$$(docker build -q .)" sh -c \
50-
'cp -r /test/before /tmp \
51-
&& /entry /tmp/before/* \
52-
&& diff -r /tmp/before /test/after \
50+
'cp -r /test/before /tmp/actual \
51+
&& cp -r /test/after /tmp/expected \
52+
&& /entry /tmp/actual/* \
53+
&& diff -r /tmp/expected /tmp/actual \
5354
&& echo "All tests passed!"'

0 commit comments

Comments
 (0)