diff options
author | Hubert Figuière <hub@figuiere.net> | 2024-01-06 09:54:03 -0500 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2024-01-06 10:25:43 -0500 |
commit | f135b2cb45c12d2e512aea4db9eb8d320f0244f2 (patch) | |
tree | 1bf5c7dc94a3eab72133493c56d7897406bc27f5 | |
parent | 42fe42908a5cc8181aaa945f5e1d8bbd17c0c26f (diff) |
tests: really fix tests
Thumbnail::with_data() is now public.
Test data files are disted.
Signed-off-by: Hubert Figuière <hub@figuiere.net>
-rw-r--r-- | Makefile.am | 10 | ||||
-rw-r--r-- | src/thumbnail.rs | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index a1d585f..099d7d0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,10 +11,18 @@ webdist: dox EXTRA_DIST = MPL-2.0 \ RELEASE_NOTES \ build-aux/cargo-vendor.sh \ - $(RUST_FILES) + $(RUST_FILES) \ + $(TESTDATA_FILES) CLEANFILES = $(CARGO_TARGET_DIR)/CACHEDIR.TAG $(BUILT_SOURCES) +TESTDATA_FILES = \ + testdata/identify/content_cr2 \ + testdata/identify/content_cr3 \ + testdata/identify/content_crw \ + testdata/identify/content_mrw \ + testdata/identify/content_raf + RUST_FILES = Cargo.lock \ Cargo.toml \ benches/the_benchmark.rs \ diff --git a/src/thumbnail.rs b/src/thumbnail.rs index dc239c9..db4f895 100644 --- a/src/thumbnail.rs +++ b/src/thumbnail.rs @@ -104,7 +104,7 @@ impl Thumbnail { } /// New thumbnail with data. - pub(crate) fn with_data( + pub fn with_data( width: u32, height: u32, data_type: DataType, |