Skip to content

Commit b759e2b

Browse files
updated test expectations
1 parent c0cb073 commit b759e2b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

templates/go/query.go.twig

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -318,95 +318,95 @@ func And(queries []string) string {
318318
})
319319
}
320320

321-
func DistanceEqual(attribute string, values interface{}, distance float64, meters bool) string {
321+
func DistanceEqual(attribute string, values []interface{}, distance float64, meters bool) string {
322322
return parseQuery(queryOptions{
323323
Method: "distanceEqual",
324324
Attribute: &attribute,
325325
Values: &[]interface{}{values, distance, meters},
326326
})
327327
}
328328

329-
func DistanceNotEqual(attribute string, values interface{}, distance float64, meters bool) string {
329+
func DistanceNotEqual(attribute string, values []interface{}, distance float64, meters bool) string {
330330
return parseQuery(queryOptions{
331331
Method: "distanceNotEqual",
332332
Attribute: &attribute,
333333
Values: &[]interface{}{values, distance, meters},
334334
})
335335
}
336336

337-
func DistanceGreaterThan(attribute string, values interface{}, distance float64, meters bool) string {
337+
func DistanceGreaterThan(attribute string, values []interface{}, distance float64, meters bool) string {
338338
return parseQuery(queryOptions{
339339
Method: "distanceGreaterThan",
340340
Attribute: &attribute,
341341
Values: &[]interface{}{values, distance, meters},
342342
})
343343
}
344344

345-
func DistanceLessThan(attribute string, values interface{}, distance float64, meters bool) string {
345+
func DistanceLessThan(attribute string, values []interface{}, distance float64, meters bool) string {
346346
return parseQuery(queryOptions{
347347
Method: "distanceLessThan",
348348
Attribute: &attribute,
349349
Values: &[]interface{}{values, distance, meters},
350350
})
351351
}
352352

353-
func Intersects(attribute string, values interface{}) string {
353+
func Intersects(attribute string, values []interface{}) string {
354354
return parseQuery(queryOptions{
355355
Method: "intersects",
356356
Attribute: &attribute,
357357
Values: &values,
358358
})
359359
}
360360

361-
func NotIntersects(attribute string, values interface{}) string {
361+
func NotIntersects(attribute string, values []interface{}) string {
362362
return parseQuery(queryOptions{
363363
Method: "notIntersects",
364364
Attribute: &attribute,
365365
Values: &values,
366366
})
367367
}
368368

369-
func Crosses(attribute string, values interface{}) string {
369+
func Crosses(attribute string, values []interface{}) string {
370370
return parseQuery(queryOptions{
371371
Method: "crosses",
372372
Attribute: &attribute,
373373
Values: &values,
374374
})
375375
}
376376

377-
func NotCrosses(attribute string, values interface{}) string {
377+
func NotCrosses(attribute string, values []interface{}) string {
378378
return parseQuery(queryOptions{
379379
Method: "notCrosses",
380380
Attribute: &attribute,
381381
Values: &values,
382382
})
383383
}
384384

385-
func Overlaps(attribute string, values interface{}) string {
385+
func Overlaps(attribute string, values []interface{}) string {
386386
return parseQuery(queryOptions{
387387
Method: "overlaps",
388388
Attribute: &attribute,
389389
Values: &values,
390390
})
391391
}
392392

393-
func NotOverlaps(attribute string, values interface{}) string {
393+
func NotOverlaps(attribute string, values []interface{}) string {
394394
return parseQuery(queryOptions{
395395
Method: "notOverlaps",
396396
Attribute: &attribute,
397397
Values: &values,
398398
})
399399
}
400400

401-
func Touches(attribute string, values interface{}) string {
401+
func Touches(attribute string, values []interface{}) string {
402402
return parseQuery(queryOptions{
403403
Method: "touches",
404404
Attribute: &attribute,
405405
Values: &values,
406406
})
407407
}
408408

409-
func NotTouches(attribute string, values interface{}) string {
409+
func NotTouches(attribute string, values []interface{}) string {
410410
return parseQuery(queryOptions{
411411
Method: "notTouches",
412412
Attribute: &attribute,

tests/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ abstract class Base extends TestCase
119119
'{"method":"updatedBefore","values":["2023-01-01"]}',
120120
'{"method":"updatedAfter","values":["2023-01-01"]}',
121121
'{"method":"distanceEqual","attribute":"location","values":[[[40.7128, -74],[40.7128, -74]],1000,false]}',
122-
'{"method":"distanceEqual","attribute":"location","values":[[[40.7128, -74],[40.7128, -74]],1000,true]}',
122+
'{"method":"distanceEqual","attribute":"location","values":[[40.7128,-74],1000,true]}',
123123
'{"method":"distanceNotEqual","attribute":"location","values":[[40.7128,-74],1000,false]}',
124124
'{"method":"distanceNotEqual","attribute":"location","values":[[40.7128,-74],1000,true]}',
125125
'{"method":"distanceGreaterThan","attribute":"location","values":[[40.7128,-74],1000,false]}',

0 commit comments

Comments
 (0)