summary refs log tree commit diff stats
path: root/tests/stdlib/t20023.nim
blob: 8f12f899322cd9d5ee112c0f105406e40a4c148d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import std/[tables, hashes, assertions]


let t = ()
var a = toTable({t:t})
del(a,t)
let b = default(typeof(a))

doAssert a==b , "tables are not equal"
doAssert hash(a) == hash(b), "table hashes are not equal"