Pass options to findPath

revert-6246b479
elsid 1 year ago
parent 9410eed9e5
commit c04d869fc7
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -81,7 +81,7 @@ testing.registerLocalTest('findPath',
},
destinationTolerance = 1,
}
local status, path = nearby.findPath(src, dst)
local status, path = nearby.findPath(src, dst, options)
testing.expectEqual(status, nearby.FIND_PATH_STATUS.Success, 'Status')
testing.expectLessOrEqual((path[path:size()] - dst):length(), 1, 'Last path point')
end)

Loading…
Cancel
Save