From 291d7fd4209077de07a72ba2376c87a33d65c0a9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Feb 2018 18:24:14 -0800 Subject: [PATCH] Updated tests. --- test.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.lua b/test.lua index 9277e45..e58a98c 100644 --- a/test.lua +++ b/test.lua @@ -75,7 +75,8 @@ test("Testing tostring", function() end) test("Testing from_table", function() - assert(Vec:from_table({y=3,x=1}) == v) + assert(Vec:from_table(setmetatable({y=3}, {__index={x=1}})) == v) + assert(Vec:from_table({x=1}) == Vec(1, nil)) end) test("Testing singletons", function()