()
| 102 | |
| 103 | #[test] |
| 104 | fn test_upsample() { |
| 105 | let samples = vec![0.0f32, 1.0, 0.0, -1.0]; // 4 samples at 1Hz |
| 106 | let up = cake_core::models::luxtts::vocos::upsample(&samples, 1, 2); |
| 107 | assert_eq!(up.len(), 8); // doubled |
| 108 | // Check interpolation: midpoint between 0 and 1 should be ~0.5 |
| 109 | assert!((up[1] - 0.5).abs() < 0.1); |
| 110 | } |
| 111 | |
| 112 | #[test] |
| 113 | fn test_euler_solver_flow_matching() { |
nothing calls this directly
no test coverage detected