From 7d9ddfd7d4bc4ad019dc32da86f115cd05cab28c Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Mon, 23 Jun 2014 15:03:23 +0200 Subject: [PATCH] fixed cache/binary test for go1.3 --- cache/binary/tags_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cache/binary/tags_test.go b/cache/binary/tags_test.go index 0f471d1..8e51b2c 100644 --- a/cache/binary/tags_test.go +++ b/cache/binary/tags_test.go @@ -2,6 +2,7 @@ package binary import ( "imposm3/element" + "sort" "testing" ) @@ -13,9 +14,12 @@ func TestTagsAsAndFromArray(t *testing.T) { t.Fatal("invalid length", array) } - for i, expected := range []string{"\x01foo", + sort.Strings(array) + for i, expected := range []string{ + "\x01foo", string(tagsToCodePoint["highway"]["residential"]), - string(tagsToCodePoint["oneway"]["yes"])} { + string(tagsToCodePoint["oneway"]["yes"]), + } { if array[i] != expected { t.Fatal("invalid value", array, i, expected) }