xref: /freebsd/libexec/nuageinit/tests/dirname.lua (revision 59f5f100b774de8824fb2fc1a8a11a93bbc2dafd)
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