summaryrefslogtreecommitdiff
path: root/example_test.go
diff options
context:
space:
mode:
authorPatrick Mezard <[email protected]>2013-12-01 16:38:22 +0100
committerPatrick Mezard <[email protected]>2013-12-01 16:46:38 +0100
commit264fa19defb385c37e0a849fab9e91e58b1b67ea (patch)
tree62c6885ee422de8a4e8f50d5613ccaa32a0a6945 /example_test.go
parente762b3d1320b76030bd7f6cc2bfc3d9acce874c0 (diff)
tests: fix TestSortValues on 32-bits platforms
reflect.DeepEqual fails when comparing reflect.Value containing float64. I think it cannot make sense of reflect.Value pointer tricks and directly compare reflect.Value.val fields which contain the float value in 64 bits, but a pointer to the float in 32 bits. Fortunately, interface{} which have a similar memory layout, compare correctly, so we just turn the []reflect.Value into []interface{}.
Diffstat (limited to 'example_test.go')
0 files changed, 0 insertions, 0 deletions