From cb96b5d9527975424ddb70561fce87c947f9ba08 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 22 Apr 2018 21:16:02 +1000 Subject: src/loslib.js: Fix wday off-by-one error --- test/loslib.test.js | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/loslib.test.js b/test/loslib.test.js index abb5ef2..02735cb 100644 --- a/test/loslib.test.js +++ b/test/loslib.test.js @@ -119,6 +119,7 @@ test('os.time normalisation of table', () => { assert(t.day == 20, "unmodified day") assert(t.month == 2, "unmodified month") assert(t.year == 2018, "unmodified year") + assert(t.wday == 3, "correct wday") `; lualib.luaL_openlibs(L); expect(lauxlib.luaL_loadstring(L, to_luastring(luaCode))).toBe(lua.LUA_OK); -- cgit v1.2.3-70-g09d2