xlat_expr %file.head('src/tests/xlat/file/one')
match foo

#
#  No LF at the end of the line
#
xlat_expr %file.head('src/tests/xlat/file/one-no-lf')
match foo

xlat_expr %file.head('src/tests/xlat/file/two')
match foo bar

xlat_expr %file.tail('src/tests/xlat/file/two')
match baz is good

xlat_expr %file.tail('src/tests/xlat/file/two-no-lf')
match baz is good

xlat_expr %file.tail('src/tests/xlat/file/three')
match but it was good

xlat_expr %file.tail('src/tests/xlat/file/three', 1)
match but it was good

xlat_expr %file.tail('src/tests/xlat/file/three', 2)
match who was very baaad\012but it was good

xlat_expr %file.size('src/tests/xlat/file/three')
match 64

xlat_expr %file.exists('src/tests/xlat/file/three')
match yes

xlat_expr %file.exists('src/tests/xlat/file/no-such-file')
match no

xlat_expr "foo/bar/" + %file.escape(%taint('..baz'))
match foo/bar/_x2e_x2ebaz

#
#  Can't do expressions as function arguments
#
xlat_expr %file.escape('foo/bar' + "/baz")
match ERROR offset 34 'Unexpected text after argument 1'
