diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-21 07:57:18 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-21 07:57:18 +0800 |
commit | 069c87b960c48864dc4f1b9086adf582e1dc88a9 (patch) | |
tree | 4d24df73aa5a3e7b8db9f7b1178f4c4732e325b2 /whisper/sort_test.go | |
parent | 7c4ff3abb4693bf93b2b348f572f14f2cfcf9142 (diff) | |
download | go-tangerine-069c87b960c48864dc4f1b9086adf582e1dc88a9.tar go-tangerine-069c87b960c48864dc4f1b9086adf582e1dc88a9.tar.gz go-tangerine-069c87b960c48864dc4f1b9086adf582e1dc88a9.tar.bz2 go-tangerine-069c87b960c48864dc4f1b9086adf582e1dc88a9.tar.lz go-tangerine-069c87b960c48864dc4f1b9086adf582e1dc88a9.tar.xz go-tangerine-069c87b960c48864dc4f1b9086adf582e1dc88a9.tar.zst go-tangerine-069c87b960c48864dc4f1b9086adf582e1dc88a9.zip |
whisper: use common.Hash
Diffstat (limited to 'whisper/sort_test.go')
-rw-r--r-- | whisper/sort_test.go | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/whisper/sort_test.go b/whisper/sort_test.go index 5d8177d41..a61fde4c2 100644 --- a/whisper/sort_test.go +++ b/whisper/sort_test.go @@ -1,13 +1,17 @@ package whisper -import "testing" +import ( + "testing" + + "github.com/ethereum/go-ethereum/common" +) func TestSorting(t *testing.T) { - m := map[int32]Hash{ - 1: HS("1"), - 3: HS("3"), - 2: HS("2"), - 5: HS("5"), + m := map[int32]common.Hash{ + 1: {1}, + 3: {3}, + 2: {2}, + 5: {5}, } exp := []int32{1, 2, 3, 5} res := sortKeys(m) |