fast image operations
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -372,3 +372,13 @@ macro_rules! img { } #[cfg(test)] use img; + +#[cfg(test)] +mod tests { + use super::*; + #[test] + fn repeat() { + let x: Image<&[u8], 3> = Image::build(8, 8).buf(include_bytes!("../benches/3_8x8.imgbuf")); + unsafe { x.repeated(128, 128) }; // repeat 16 times + } +} |