ec-dsp doctests: drop the asserts on the error helpers U13 made test-only
Browse files at this commit9cef65785ff6bb9a69b45f3f4ed001a431cc5873Parent: 4b975ad2 changed files +0 -3
crates/ec-dsp/src/mdct.rsmodified+0 -2
| @@ -30,8 +30,6 @@ use crate::dct::Dct4; | |||
| 30 | /// let mut mdct = Mdct::<f32>::new(2048); | 30 | /// let mut mdct = Mdct::<f32>::new(2048); |
| 31 | /// assert_eq!(mdct.spectrum_len(), 1024); | 31 | /// assert_eq!(mdct.spectrum_len(), 1024); |
| 32 | /// let window = Window::<f32>::sine(2048); | 32 | /// let window = Window::<f32>::sine(2048); |
| 33 | -/// let error = mdct.perfect_reconstruction_error(&window, 0x51de); | ||
| 34 | -/// assert!(error < 1e-6, "TDAC error {error}"); | ||
| 35 | /// ``` | 33 | /// ``` |
| 36 | #[derive(Clone, Debug)] | 34 | #[derive(Clone, Debug)] |
| 37 | pub struct Mdct<T: Real> { | 35 | pub struct Mdct<T: Real> { |
crates/ec-dsp/src/window.rsmodified+0 -1
| @@ -21,7 +21,6 @@ use crate::Real; | |||
| 21 | /// | 21 | /// |
| 22 | /// let w = Window::<f64>::kbd(2048, 4.0); | 22 | /// let w = Window::<f64>::kbd(2048, 4.0); |
| 23 | /// assert_eq!(w.len(), 2048); | 23 | /// assert_eq!(w.len(), 2048); |
| 24 | -/// assert!(w.princen_bradley_error() < 1e-12); | ||
| 25 | /// ``` | 24 | /// ``` |
| 26 | #[derive(Clone, Debug, PartialEq)] | 25 | #[derive(Clone, Debug, PartialEq)] |
| 27 | pub struct Window<T: Real> { | 26 | pub struct Window<T: Real> { |