thashes.nim 246 B

123456789101112131415161718
  1. discard """
  2. output: '''
  3. [Suite] hashes
  4. [Suite] hashing
  5. '''
  6. """
  7. import unittest, hashes
  8. suite "hashes":
  9. suite "hashing":
  10. test "0.0 and -0.0 should have the same hash value":
  11. var dummy = 0.0
  12. check hash(dummy) == hash(-dummy)