test: correct order of arguments to eq() (#27816)

This commit is contained in:
zeertzjq
2024-03-11 22:23:14 +08:00
committed by GitHub
parent 0f20b7d803
commit 1da0f3494e
22 changed files with 85 additions and 85 deletions

View File

@@ -51,11 +51,11 @@ describe('msgpack', function()
unpacker_goto(unpacker, payload, payload:len() - 1)
local finished = unpacker_advance(unpacker)
eq(finished, false)
eq(false, finished)
unpacker[0].read_size = unpacker[0].read_size + 1
finished = unpacker_advance(unpacker)
eq(finished, true)
eq(true, finished)
end
)
@@ -73,7 +73,7 @@ describe('msgpack', function()
'\x93\x02\xa6\x72\x65\x64\x72\x61\x77\x91\x92\xa9\x67\x72\x69\x64\x5f\x6c\x69\x6e\x65\x95\x02\x00\x00\x90\xc2'
)
local finished = unpacker_advance(unpacker)
eq(finished, true)
eq(true, finished)
end)
end)
end)