mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
They can be close()d explicitly with close-file-descriptor, and will close() on gc, but only explicitly closing the last port on them will close the fileno. Notably needed for network sockets where we open separate input and output ports on the same socket.
13 lines
300 B
Scheme
13 lines
300 B
Scheme
|
|
(import (scheme base) (chibi crypto md5) (chibi test))
|
|
|
|
(test-begin "md5")
|
|
|
|
(test "d41d8cd98f00b204e9800998ecf8427e"
|
|
(md5 ""))
|
|
(test "900150983cd24fb0d6963f7d28e17f72"
|
|
(md5 "abc"))
|
|
(test "9e107d9d372bb6826bd81d3542a419d6"
|
|
(md5 "The quick brown fox jumps over the lazy dog"))
|
|
|
|
(test-end)
|