blob: e80485577a5e6edb2a86b4f1790b16a15c521c9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|