aboutsummaryrefslogtreecommitdiff
path: root/vendor/qoi/tests/test_misc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/qoi/tests/test_misc.rs')
-rw-r--r--vendor/qoi/tests/test_misc.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/qoi/tests/test_misc.rs b/vendor/qoi/tests/test_misc.rs
new file mode 100644
index 0000000..720adf4
--- /dev/null
+++ b/vendor/qoi/tests/test_misc.rs
@@ -0,0 +1,6 @@
+#[test]
+fn test_new_encoder() {
+ // this used to fail due to `Bytes` not being `pub`
+ let arr = [0u8];
+ let _ = qoi::Decoder::new(&arr[..]);
+} \ No newline at end of file