fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -10,6 +10,7 @@ import LyrebirdSynth
|
||||
|
||||
// MARK: - _regionForSegment
|
||||
|
||||
@MainActor
|
||||
@Suite("_regionForSegment") struct RegionForSegmentTests {
|
||||
|
||||
// No loop or release — everything is preLoop
|
||||
@@ -64,6 +65,7 @@ import LyrebirdSynth
|
||||
|
||||
// MARK: - _segmentBoundaryTimes
|
||||
|
||||
@MainActor
|
||||
@Suite("_segmentBoundaryTimes") struct SegmentBoundaryTimesTests {
|
||||
|
||||
@Test func emptyDurations_returnsOnlyZero() {
|
||||
@@ -97,6 +99,7 @@ import LyrebirdSynth
|
||||
|
||||
// MARK: - _envelopeYBounds
|
||||
|
||||
@MainActor
|
||||
@Suite("_envelopeYBounds") struct EnvelopeYBoundsTests {
|
||||
|
||||
@Test func emptyLevels_returnsDefaultRange() {
|
||||
@@ -134,6 +137,7 @@ import LyrebirdSynth
|
||||
|
||||
// MARK: - Envelope.valueAtTime boundary sampling
|
||||
|
||||
@MainActor
|
||||
@Suite("Envelope valueAtTime edge cases for plotting") struct EnvelopeValueAtTimePlottingTests {
|
||||
|
||||
@Test func clampsBelowZero_returnsFirstLevel() {
|
||||
|
||||
Reference in New Issue
Block a user