Skip to content

Commit

Permalink
test: fix test for replace cell
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Apr 17, 2019
1 parent b029161 commit 0100ba6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions resource/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ mod tests {
Some(Resource::Bundled("specs/cells/always_success".into()))
);
assert_eq!(
locator.resolve_relative_to("cells/secp256k1_blake2b_lock".into(), &ckb),
locator.resolve_relative_to("cells/secp256k1_blake160_sighash_all".into(), &ckb),
Some(Resource::Bundled(
"specs/cells/secp256k1_blake2b_lock".into()
"specs/cells/secp256k1_blake160_sighash_all".into()
))
);
assert_eq!(locator.resolve_relative_to("x".into(), &ckb), None);
Expand All @@ -316,9 +316,10 @@ mod tests {
Some(Resource::FileSystem(always_success_path.clone()))
);
assert_eq!(
locator.resolve_relative_to("cells/secp256k1_blake2b_lock".into(), &spec_dev),
locator
.resolve_relative_to("cells/secp256k1_blake160_sighash_all".into(), &spec_dev),
Some(Resource::Bundled(
"specs/cells/secp256k1_blake2b_lock".into()
"specs/cells/secp256k1_blake160_sighash_all".into()
))
);
assert_eq!(locator.resolve_relative_to("x".into(), &spec_dev), None);
Expand Down
2 changes: 1 addition & 1 deletion spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ pub mod test {
let data_hash = tx.outputs()[0].data_hash();
assert_eq!(
format!("{:x}", data_hash),
"fe1cf5a297023a3c5282ecd9b0ca88d6736424d75fbe4dcf47a7c8b303e4d339"
"55a809b92c5c404989bfe523639a741f4368ecaa3d4c42d1eb8854445b1b798b"
);
}
}

0 comments on commit 0100ba6

Please sign in to comment.