mirror of https://github.com/tidwall/tile38.git
Fix test on Apple silicon
The returned distance value for the kNN test was failing on a Apple M1 machine. The test expected a hardcoded value. amd64: 13053.885940801563 apple: 13053.885940801567 Not sure why the difference between the two cpus but I changed the test to not compare for exact equality.
This commit is contained in:
parent
7cab00bea0
commit
8e61f8163e
|
@ -48,7 +48,7 @@ func keys_KNN_basic_test(mc *mockServer) error {
|
|||
{"NEARBY", "mykey", "LIMIT", 10, "IDS", "POINT", 20, 20, 4000000}, {"[0 [2 3 5 1 4 6]]"},
|
||||
{"NEARBY", "mykey", "LIMIT", 10, "IDS", "POINT", 20, 20, 1500000}, {"[0 [2 3 5]]"},
|
||||
{"NEARBY", "mykey", "LIMIT", 10, "DISTANCE", "POINT", 52, 13, 100}, {`[0 [[6 {"type":"Point","coordinates":[13,52]} 0]]]`},
|
||||
{"NEARBY", "mykey", "LIMIT", 10, "DISTANCE", "POINT", 52.1, 13.1, 100000}, {`[0 [[6 {"type":"Point","coordinates":[13,52]} 13053.885940801563]]]`},
|
||||
{"NEARBY", "mykey", "LIMIT", 10, "POINT", 52.1, 13.1, 100000}, {`[0 [[6 {"type":"Point","coordinates":[13,52]}]]]`},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue