Skip to content

Commit

Permalink
Clarify the logic of a test
Browse files Browse the repository at this point in the history
  • Loading branch information
przydatek committed Feb 13, 2024
1 parent e30bda3 commit f9acd44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vc_util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,8 +1431,9 @@ mod tests {
};
let credential = build_credential_jwt(params);
assert_eq!(credential.len(), example_jwt.len());
// First check that the built credential differs from the example one (they have different nbf-entries).
assert_ne!(credential, example_jwt);
// The built credential should differ from the expected one only by the nbf-entry.
// After the removal of the nbf-entries, all the remaining information should be identical.
assert_eq!(remove_nbf(credential.as_str()), example_jwt_without_nbf);
}
}

0 comments on commit f9acd44

Please sign in to comment.