mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Propagate nil in Lua APIs more often
This commit is contained in:
parent
c9d7838213
commit
638c56e3a5
5 changed files with 78 additions and 43 deletions
|
@ -15,6 +15,8 @@
|
|||
|
||||
unix.pledge('stdio')
|
||||
|
||||
assert(Md5(nil) == nil)
|
||||
|
||||
-- https://datatracker.ietf.org/doc/html/rfc1321#appendix-A.5
|
||||
assert(Md5("hello") == "\x5d\x41\x40\x2a\xbc\x4b\x2a\x76\xb9\x71\x9d\x91\x10\x17\xc5\x92")
|
||||
assert(Md5("") == "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04\xe9\x80\x09\x98\xec\xf8\x42\x7e")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue