We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0472c00 commit e5100d1Copy full SHA for e5100d1
src/sdl2/audio.rs
@@ -829,7 +829,7 @@ mod test {
829
assert!(cvt.is_conversion_needed());
830
831
// since we're going from mono to stereo, our capacity must be at least twice the original (255) vec size
832
- assert!(cvt.capacity(255) > 255*2, "capacity must be able to hold the converted audio sample");
+ assert!(cvt.capacity(255) >= 255*2, "capacity must be able to hold the converted audio sample");
833
834
let new_buffer = cvt.convert(buffer);
835
assert_eq!(new_buffer.len(), new_buffer_expected.len(), "capacity must be exactly equal to twice the original vec size");
0 commit comments