summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/eplain/base/test/filexist.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/eplain/base/test/filexist.tex')
-rw-r--r--Master/texmf-dist/source/eplain/base/test/filexist.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/eplain/base/test/filexist.tex b/Master/texmf-dist/source/eplain/base/test/filexist.tex
new file mode 100644
index 00000000000..e80485577a5
--- /dev/null
+++ b/Master/texmf-dist/source/eplain/base/test/filexist.tex
@@ -0,0 +1,22 @@
+% This file is public domain.
+%
+% Test \testfileexistence.
+%
+\ifx\undefined\eplain \input eplain\fi
+
+\testfileexistence{tex}
+\iffileexists \else
+ \message{\jobname.tex does not exist, but it should.}
+\fi
+
+\testfileexistence[README]{}
+\iffileexists \else
+ \message{README does not exist, but it should.}
+\fi
+
+\testfileexistence[foo]{bar}
+\iffileexists
+ \message{foo.bar exists, but it shouldn't.}
+\fi
+
+\bye