use assert_eq
This commit is contained in:
parent
834d67f8f6
commit
2f25efe07e
@ -299,9 +299,9 @@ async fn check_or_create_script_poicy(
|
||||
match script_policy_result{
|
||||
Some(script_policy_reponse)=>{
|
||||
// check that everything matches the expectation
|
||||
assert!(hash==script_policy_reponse.FromScriptHash);
|
||||
assert!(script_policy.ToScriptID==script_policy_reponse.ToScriptID);
|
||||
assert!(script_policy.Policy==script_policy_reponse.Policy);
|
||||
assert_eq!(hash,script_policy_reponse.FromScriptHash);
|
||||
assert_eq!(script_policy.ToScriptID,script_policy_reponse.ToScriptID);
|
||||
assert_eq!(script_policy.Policy,script_policy_reponse.Policy);
|
||||
},
|
||||
None=>{
|
||||
// create a new policy
|
||||
|
Loading…
x
Reference in New Issue
Block a user