// WavCodecTests.swift // Lyrebird // // Copyright (c) 2026 Joshua Parmenter / realizedsound // SPDX-License-Identifier: MIT import Testing import Foundation import LyrebirdSynth @Suite("Portable WAV codec") struct WavCodecTests { private func tempURL(_ ext: String) -> URL { let dir: URL = FileManager.default.temporaryDirectory return dir.appendingPathComponent("lyrebird-wavtest-\(UUID().uuidString).\(ext)") } private func makeInterleaved(frames: Int, channels: Int) -> [Float] { var out: [Float] = [Float](repeating: 0, count: frames * channels) for f: Int in 0..