summary refs log tree commit diff stats
path: root/tests/stdlib/thashes.nim
blob: 2cd1e4e4799943896169246cd8de42dbab7f498f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
discard """
output: '''
[Suite] hashes

[Suite] hashing

'''
"""

import unittest, 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)