Skip to content

Commit 0b00f76

Browse files
Fix test
1 parent 8b7d3c9 commit 0b00f76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

geo/parse_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ func TestExtractGeoShapeCoordinates(t *testing.T) {
379379
{"lon":77.58894681930542,"lat":12.976498523818783}
380380
]
381381
]`),
382-
typ: "polygon",
382+
typ: PolygonType,
383383
expectOK: false,
384384
},
385385
{ // Invalid construct causes panic (within extract3DCoordinates), fix MB-65807
@@ -390,7 +390,7 @@ func TestExtractGeoShapeCoordinates(t *testing.T) {
390390
[77.58894681930542,12.976498523818783]
391391
]
392392
}`),
393-
typ: "polygon",
393+
typ: PolygonType,
394394
expectOK: false,
395395
},
396396
{
@@ -442,6 +442,7 @@ func TestExtractGeoShapeCoordinates(t *testing.T) {
442442
if err := json.Unmarshal(tests[i].x, &x); err != nil {
443443
t.Fatalf("[%d] JSON err: %v", i+1, err)
444444
}
445+
445446
_, typ, ok := ExtractGeoShapeCoordinates(x, tests[i].typ)
446447
if ok != tests[i].expectOK {
447448
t.Errorf("[%d] expected ok %t, got %t", i+1, tests[i].expectOK, ok)

0 commit comments

Comments
 (0)