xref: /freebsd/libexec/nuageinit/tests/dirname.lua (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1local n = require("nuage")
2print(n.dirname("/my/path/path1"))
3if n.dirname("path") then
4	nuage.err("Expecting nil for n.dirname(\"path\")")
5end
6if n.dirname() then
7	nuage.err("Expecting nil for n.dirname")
8end
9