summaryrefslogtreecommitdiff
path: root/libexec/nuageinit/tests/dirname.lua
blob: 7e3a2c8355028ce634f23e70f0ae1a766dc52ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/libexec/flua

local n = require("nuage")

print(n.dirname("/my/path/path1"))
if n.dirname("path") then
	n.err('Expecting nil for n.dirname("path")')
end
if n.dirname() then
	n.err("Expecting nil for n.dirname")
end