aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-22 21:16:02 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-22 21:20:45 +1000
commitcb96b5d9527975424ddb70561fce87c947f9ba08 (patch)
tree4d9a8ec25de08ca850ea8654a6e75038bee9db86 /test
parent02b2ed38816fe11be3834dc1494b3e2bb5f8381c (diff)
downloadfengari-cb96b5d9527975424ddb70561fce87c947f9ba08.tar.gz
fengari-cb96b5d9527975424ddb70561fce87c947f9ba08.tar.bz2
fengari-cb96b5d9527975424ddb70561fce87c947f9ba08.zip
src/loslib.js: Fix wday off-by-one error
Diffstat (limited to 'test')
-rw-r--r--test/loslib.test.js1
1 files changed, 1 insertions, 0 deletions
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);