summaryrefslogtreecommitdiff
path: root/alligator_tvg/tests
diff options
context:
space:
mode:
Diffstat (limited to 'alligator_tvg/tests')
-rw-r--r--alligator_tvg/tests/examples/tvg/everything-32.tvgbin0 -> 2637 bytes
-rw-r--r--alligator_tvg/tests/examples/tvg/everything.tvgbin0 -> 1447 bytes
-rw-r--r--alligator_tvg/tests/examples/tvg/shield-16.tvgbin0 -> 203 bytes
-rw-r--r--alligator_tvg/tests/examples/tvg/shield-32.tvgbin0 -> 371 bytes
-rw-r--r--alligator_tvg/tests/examples/tvg/shield-8.tvgbin0 -> 119 bytes
-rw-r--r--alligator_tvg/tests/parse.rs14
6 files changed, 14 insertions, 0 deletions
diff --git a/alligator_tvg/tests/examples/tvg/everything-32.tvg b/alligator_tvg/tests/examples/tvg/everything-32.tvg
new file mode 100644
index 0000000..7ea4bdd
--- /dev/null
+++ b/alligator_tvg/tests/examples/tvg/everything-32.tvg
Binary files differ
diff --git a/alligator_tvg/tests/examples/tvg/everything.tvg b/alligator_tvg/tests/examples/tvg/everything.tvg
new file mode 100644
index 0000000..b211c53
--- /dev/null
+++ b/alligator_tvg/tests/examples/tvg/everything.tvg
Binary files differ
diff --git a/alligator_tvg/tests/examples/tvg/shield-16.tvg b/alligator_tvg/tests/examples/tvg/shield-16.tvg
new file mode 100644
index 0000000..aacd3ea
--- /dev/null
+++ b/alligator_tvg/tests/examples/tvg/shield-16.tvg
Binary files differ
diff --git a/alligator_tvg/tests/examples/tvg/shield-32.tvg b/alligator_tvg/tests/examples/tvg/shield-32.tvg
new file mode 100644
index 0000000..a2abc92
--- /dev/null
+++ b/alligator_tvg/tests/examples/tvg/shield-32.tvg
Binary files differ
diff --git a/alligator_tvg/tests/examples/tvg/shield-8.tvg b/alligator_tvg/tests/examples/tvg/shield-8.tvg
new file mode 100644
index 0000000..57033be
--- /dev/null
+++ b/alligator_tvg/tests/examples/tvg/shield-8.tvg
Binary files differ
diff --git a/alligator_tvg/tests/parse.rs b/alligator_tvg/tests/parse.rs
new file mode 100644
index 0000000..eb6e801
--- /dev/null
+++ b/alligator_tvg/tests/parse.rs
@@ -0,0 +1,14 @@
+use std::fs::File;
+
+use alligator_tvg::{Rgba16, TvgFile};
+
+#[test]
+fn main() {
+ for entry in std::fs::read_dir("tests/examples/tvg").unwrap() {
+ let entry = entry.unwrap().file_name();
+ let entry = entry.to_string_lossy();
+ let mut file = File::open(format!("./tests/examples/tvg/{}", &entry)).unwrap();
+ let _: TvgFile<Rgba16> = TvgFile::read_from(&mut file).unwrap();
+ println!("{:?} succeeded!", entry);
+ }
+}