Skip to content

Commit 47cd3ee

Browse files
mschochabhinavdangeti
authored andcommitted
add third point to test
removes any possible confusion around slice len 2 checks in the geo parsing code
1 parent 2d8bf81 commit 47cd3ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mapping/mapping_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,7 @@ func TestMappingArrayOfStringGeoPoints(t *testing.T) {
11921192
"points": []string {
11931193
"1.0, 2.0",
11941194
"3.0, 4.0",
1195+
"5.0, 6.0",
11951196
},
11961197
}
11971198

@@ -1205,6 +1206,7 @@ func TestMappingArrayOfStringGeoPoints(t *testing.T) {
12051206
expectPoints := map[string][]float64{
12061207
"first": {2.0, 1.0},
12071208
"second": {4.0, 3.0},
1209+
"third": {6.0, 5.0},
12081210
}
12091211

12101212
for _, f := range doc.Fields {
@@ -1237,4 +1239,4 @@ func TestMappingArrayOfStringGeoPoints(t *testing.T) {
12371239
t.Errorf("some points not found: %v", expectPoints)
12381240
}
12391241

1240-
}
1242+
}

0 commit comments

Comments
 (0)