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