diff --git a/Cargo.lock b/Cargo.lock index 59e095eb..1255535c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1194,7 +1194,7 @@ dependencies = [ [[package]] name = "vach-cli" -version = "0.5.6" +version = "0.6.0" dependencies = [ "anyhow", "clap 3.2.25", diff --git a/vach-cli/Cargo.toml b/vach-cli/Cargo.toml index 55c8a042..dec87ac3 100644 --- a/vach-cli/Cargo.toml +++ b/vach-cli/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "vach-cli" -version = "0.5.6" +version = "0.6.0" edition = "2021" authors = [ "Jasper Fortuin ", - " Newton Toto ", + "Newton Toto ", ] description = "A command-line tool to work with .vach files" license = "MIT" diff --git a/vach/src/tests.rs b/vach/src/tests.rs index 3766b961..20ea6862 100644 --- a/vach/src/tests.rs +++ b/vach/src/tests.rs @@ -159,20 +159,15 @@ fn fetch_with_signature() -> InternalResult { config.load_public_key(keypair)?; let mut archive = Archive::with_config(target, &config)?; - let resource = archive.fetch_mut("test_data/song.txt")?; - let song = str::from_utf8(&resource.data).unwrap(); + let resource = archive.fetch_mut("test_data/quicksort.wasm")?; + assert_eq!(resource.data.len(), 106537); // The adjacent resource was flagged to not be signed let not_signed_resource = archive.fetch_mut("not_signed")?; assert!(!not_signed_resource.flags.contains(Flags::SIGNED_FLAG)); assert!(!not_signed_resource.authenticated); - // Check authenticity of retrieved data - let song = song.trim(); - assert_eq!(song.len(), 1977); - let resource = archive.fetch_mut("signed")?; - assert!(resource.authenticated); assert!(resource.flags.contains(Flags::SIGNED_FLAG));