// HalfbandDownsampler2xTests.swift // Lyrebird // // Copyright (c) 2026 Joshua Parmenter / realizedsound // SPDX-License-Identifier: MIT import Testing import Foundation @testable @_spi(LyrebirdExtensions) import LyrebirdSynth @Suite("HalfbandDownsampler2x") struct HalfbandDownsampler2xTests { @Test("DC input becomes DC output (gain = 1.0)") func dcGainIsUnity() { var dn: HalfbandDownsampler2x = HalfbandDownsampler2x() let warmupPairs: Int = HalfbandFIR.length var y: Double = 0.0 for _ in 0..