[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: luaunit 2+ examples?
- From: Dan Christian <danchristian65@...>
- Date: Tue, 10 May 2016 17:48:00 -0700
I had things running with luaunit 1.5, which imports as globals.
But then I needed the luarocks version which is 2.1 and everything is
different.
There is a 3.1 out there, but it isn't packaged with luarocks.
I tried importing it like this (from the example in the source)
local LuaUnit = require('luaunit')
Tests = {}
function Tests:test1()
...
LuaUnit.assertEquals(foo, bar)
os.exit(LuaUnit.run())
But LuaUnit.assertEquals is nil.
I'm not sure how this is supposed to be used.
Dan