summary refs log tree commit diff stats
path: root/tests/stdlib/thashes.nim
blob: c442b43fbaf4d8e31fe025315fb7a9559b14a3f5 (plain) (blame)
1
2
3
4
5
6
7
8
import unittest
import hashes

suite "hashes":
  suite "hashing":
    test "0.0 and -0.0 should have the same hash value":
      var dummy = 0.0
      check hash(dummy) == hash(-dummy)