@@ -37,7 +37,7 @@ local done_command = utils.processArgsGetopt({...}, {
3737 {' h' , ' help' , handler = function () help = true end },
3838 {' n' , ' nocache' , handler = function () nocache = true end },
3939 {' d' , ' test_dir' , hasArg = true ,
40- handler = function (arg ) mode_filter = arg : split ( ' , ' ) end },
40+ handler = function (arg ) test_dir = arg end },
4141 {' m' , ' modes' , hasArg = true ,
4242 handler = function (arg ) mode_filter = arg :split (' ,' ) end },
4343 {' t' , ' tests' , hasArg = true ,
@@ -127,8 +127,9 @@ local function table_eq_recurse(a, b, keys, known_eq)
127127 return true
128128end
129129function expect .table_eq (a , b , comment )
130- if type (a ) ~= ' table' or type (b ) ~= ' table' then
131- return false , comment , ' both operands to table_eq must be tables'
130+ if (type (a ) ~= ' table' and type (a ) ~= ' userdata' ) or
131+ (type (b ) ~= ' table' and type (b ) ~= ' userdata' ) then
132+ return false , comment , ' operands to table_eq must be tables or userdata'
132133 end
133134 local keys , known_eq = {}, {}
134135 local matched , keys_at_diff , diff = table_eq_recurse (a , b , keys , known_eq )
0 commit comments