You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Heap tests in ./Tests/PriorityQueueTests/HeapTests.swift are relying on @testable import to access internal interfaces. Unfortantely this doesn't work in release mode, so we can only run heap tests in debug builds.
We ought to be able to run these correctness tests with optimizations enabled. The way to do this is to replace direct use of internal interfaces with an __unstable view and/or @_spi(Testing) -- see e.g. how OrderedSet does this.
The text was updated successfully, but these errors were encountered:
@testable import is replaced with @_spi(Testing) import.
A test for _Node is moved to another file because this test needs access to internals of PriorityQueueModule and this test will not work in optimized builds.
Currently the
Heap
tests in ./Tests/PriorityQueueTests/HeapTests.swift are relying on@testable import
to access internal interfaces. Unfortantely this doesn't work in release mode, so we can only run heap tests in debug builds.We ought to be able to run these correctness tests with optimizations enabled. The way to do this is to replace direct use of internal interfaces with an
__unstable
view and/or@_spi(Testing)
-- see e.g. howOrderedSet
does this.The text was updated successfully, but these errors were encountered: