fixed cache/binary test for go1.3
parent
e99c35f699
commit
7d9ddfd7d4
|
@ -2,6 +2,7 @@ package binary
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"imposm3/element"
|
"imposm3/element"
|
||||||
|
"sort"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -13,9 +14,12 @@ func TestTagsAsAndFromArray(t *testing.T) {
|
||||||
t.Fatal("invalid length", array)
|
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["highway"]["residential"]),
|
||||||
string(tagsToCodePoint["oneway"]["yes"])} {
|
string(tagsToCodePoint["oneway"]["yes"]),
|
||||||
|
} {
|
||||||
if array[i] != expected {
|
if array[i] != expected {
|
||||||
t.Fatal("invalid value", array, i, expected)
|
t.Fatal("invalid value", array, i, expected)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue