summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-03 23:18:16 -0400
committerpommicket <pommicket@gmail.com>2023-09-03 23:18:16 -0400
commit17c9c278c1c881bf2a94617e761441deb93d9f6f (patch)
treef85e5f6a8e970f16045f79eede0ac00e7ccaba4c
parentfa4e07f8de55d149639ab4c2a1669545c6a914f7 (diff)
failures!
-rw-r--r--examples/earth0.pngbin0 -> 3151930 bytes
-rw-r--r--examples/earth9.pngbin0 -> 1473658 bytes
-rw-r--r--examples/small.png (renamed from examples/test.png)bin233 -> 233 bytes
-rw-r--r--examples/small.rs (renamed from examples/test.rs)2
-rw-r--r--src/lib.rs12
5 files changed, 11 insertions, 3 deletions
diff --git a/examples/earth0.png b/examples/earth0.png
new file mode 100644
index 0000000..8c1ab6a
--- /dev/null
+++ b/examples/earth0.png
Binary files differ
diff --git a/examples/earth9.png b/examples/earth9.png
new file mode 100644
index 0000000..d2670b1
--- /dev/null
+++ b/examples/earth9.png
Binary files differ
diff --git a/examples/test.png b/examples/small.png
index 47226a2..47226a2 100644
--- a/examples/test.png
+++ b/examples/small.png
Binary files differ
diff --git a/examples/test.rs b/examples/small.rs
index 8e2a317..e6af172 100644
--- a/examples/test.rs
+++ b/examples/small.rs
@@ -1,5 +1,5 @@
fn main() {
- let mut data = &include_bytes!("test.png")[..];
+ let mut data = &include_bytes!("small.png")[..];
let header = tiny_png::read_png_header(&mut data).unwrap();
let mut buf = vec![0; header.required_bytes()];
let result = tiny_png::read_png(&mut data, Some(&header), &mut buf);
diff --git a/src/lib.rs b/src/lib.rs
index 7bbd80b..cf5a140 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -775,7 +775,15 @@ mod tests {
}
#[test]
- fn test1() {
- test_both!("examples/test.png");
+ fn test_small() {
+ test_both!("examples/small.png");
+ }
+ #[test]
+ fn test_earth0() {
+ test_both!("examples/earth0.png");
+ }
+ #[test]
+ fn test_earth9() {
+ test_both!("examples/earth9.png");
}
}