Skip to content

Commit f8cdda6

Browse files
updated go tests
1 parent c55bb73 commit f8cdda6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/languages/go/tests.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ func testQueries() {
223223
fmt.Println(query.UpdatedBetween("2023-01-01", "2023-12-31"))
224224

225225
// Spatial Distance query tests
226-
fmt.Println(query.DistanceEqual("location", []interface{}{[]interface{}{40.7128, -74}, []interface{}{40.7128, -74}}, 1000, false))
226+
fmt.Println(query.DistanceEqual("location", []interface{}{[]interface{}{40.7128, -74}, []interface{}{40.7128, -74}}, 1000, true))
227227
fmt.Println(query.DistanceEqual("location", []interface{}{40.7128, -74}, 1000, true))
228-
fmt.Println(query.DistanceNotEqual("location", []interface{}{40.7128, -74}, 1000, false))
229228
fmt.Println(query.DistanceNotEqual("location", []interface{}{40.7128, -74}, 1000, true))
230-
fmt.Println(query.DistanceGreaterThan("location", []interface{}{40.7128, -74}, 1000, false))
229+
fmt.Println(query.DistanceNotEqual("location", []interface{}{40.7128, -74}, 1000, true))
230+
fmt.Println(query.DistanceGreaterThan("location", []interface{}{40.7128, -74}, 1000, true))
231231
fmt.Println(query.DistanceGreaterThan("location", []interface{}{40.7128, -74}, 1000, true))
232-
fmt.Println(query.DistanceLessThan("location", []interface{}{40.7128, -74}, 1000, false))
232+
fmt.Println(query.DistanceLessThan("location", []interface{}{40.7128, -74}, 1000, true))
233233
fmt.Println(query.DistanceLessThan("location", []interface{}{40.7128, -74}, 1000, true))
234234

235235
// Spatial query tests

0 commit comments

Comments
 (0)