Make test finally stable

This commit is contained in:
Mikhail Galanin
2019-05-21 08:46:23 +01:00
parent 0d73a2fdaa
commit a780d5623d

View File

@@ -26,13 +26,20 @@ $l->registerCallback('create_object', [T::class, 'create']);
$l->eval(<<<CODE
local t = create_object(2)
table.sort( t, function( a, b ) return a > b end )
for i,k in pairs(t) do
print(i, " -> ", k, ",")
local keys = {}
for k, _ in pairs(t) do
table.insert(keys, k)
end
table.sort(keys)
for _,k in ipairs(keys) do
print(k, " -> ", t[k], ",")
end
CODE
);
?>
--EXPECTF--
v -> 2,s -> string = 2,
s -> string = 2,v -> 2,