mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 22:32:28 +00:00
Make redbean serialization deterministic
This commit is contained in:
parent
85aecbda67
commit
c9e68b0ebc
15 changed files with 452 additions and 150 deletions
|
@ -140,8 +140,11 @@ function UnixTest()
|
|||
assert(unix.close(fd))
|
||||
|
||||
-- getdents
|
||||
t = {}
|
||||
for name, kind, ino, off in assert(unix.opendir(tmpdir)) do
|
||||
table.insert(t, name)
|
||||
end
|
||||
assert(EncodeLua(t) == '{".", "..", "foo"}');
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue