Skip to content

Commit

Permalink
add check for the proper artifact file extension in the cargo-miden test
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Oct 2, 2024
1 parent 8915b27 commit 538272f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/cargo-miden/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ fn build_new_project_from_template() {
dbg!(&expected_masm_path);
assert!(expected_masm_path.exists());
assert!(expected_masm_path.to_str().unwrap().contains("/debug/"));
assert_eq!(expected_masm_path.extension().unwrap(), "masp");
assert!(expected_masm_path.metadata().unwrap().len() > 0);
// assert_eq!(expected_masm_path.metadata().unwrap().len(), 0);

Expand All @@ -68,6 +69,7 @@ fn build_new_project_from_template() {
let expected_masm_path = outputs.first().unwrap();
dbg!(&expected_masm_path);
assert!(expected_masm_path.exists());
assert_eq!(expected_masm_path.extension().unwrap(), "masp");
assert!(expected_masm_path.to_str().unwrap().contains("/release/"));
assert!(expected_masm_path.metadata().unwrap().len() > 0);

Expand Down

0 comments on commit 538272f

Please sign in to comment.