123456789101112131415161718 |
- discard """
- targets: "c cpp js"
- """
- import md5
- import std/assertions
- proc main() {.raises: [].} =
- doAssert(getMD5("Franz jagt im komplett verwahrlosten Taxi quer durch Bayern") ==
- "a3cca2b2aa1e3b5b3b5aad99a8529074")
- doAssert(getMD5("Frank jagt im komplett verwahrlosten Taxi quer durch Bayern") ==
- "7e716d0e702df0505fc72e2b89467910")
- doAssert($toMD5("") == "d41d8cd98f00b204e9800998ecf8427e")
- main()
- static: main()
|