()
| 174 | |
| 175 | #[test] |
| 176 | fn test_encode_wav_valid_riff() { |
| 177 | let wav = encode_wav_bytes(&[0.0; 100], 24000); |
| 178 | assert_eq!(&wav[0..4], b"RIFF"); |
| 179 | assert_eq!(&wav[8..12], b"WAVE"); |
| 180 | assert_eq!(&wav[12..16], b"fmt "); |
| 181 | assert_eq!(&wav[36..40], b"data"); |
| 182 | } |
| 183 | |
| 184 | #[test] |
| 185 | fn test_encode_wav_correct_sizes() { |
nothing calls this directly
no test coverage detected