Closed mpeterv closed 8 years ago
local assert = require "luassert" assert.same( {{k = "v1"}, {k = "v2"}}, {{k = "v1"}, {k = "v3"}} )
currently produces
lua: test.lua:3: Expected objects to be the same. Passed in: (table) { [1] = { *[k] = 'v1' } *[2] = { *[k] = 'v3' } } Expected: (table) { [1] = { *[k] = 'v1' } *[2] = { *[k] = 'v2' } }
Note the incorrect extra asterisks for [1][k]. They disappear if the keys in the subtables are different.
[1][k]
currently produces
Note the incorrect extra asterisks for
[1][k]
. They disappear if the keys in the subtables are different.