xref: /freebsd/libexec/nuageinit/tests/dirname.lua (revision 504981357aa36365784458cfe8d9e23097bfac7b)
1#!/usr/libexec/flua
2
3local n = require("nuage")
4
5print(n.dirname("/my/path/path1"))
6if n.dirname("path") then
7	n.err('Expecting nil for n.dirname("path")')
8end
9if n.dirname() then
10	n.err("Expecting nil for n.dirname")
11end
12