Skip to content
Snippets Groups Projects
Commit 5ad8b375 authored by Éloïs's avatar Éloïs
Browse files

tests(sanity): rule "If idty validated, first_eligible_ud shoud be >= 0"

parent 9997b183
No related branches found
No related tags found
No related merge requests found
...@@ -249,6 +249,15 @@ mod verifier { ...@@ -249,6 +249,15 @@ mod verifier {
idty_index idty_index
), ),
); );
// If the identity is validated, first_eligible_ud shoud be greater
// than zero
self.assert(
idty_value.data.first_eligible_ud > 0,
format!(
"Identity {} is corrupted: first_eligible_ud == 0 on validated idty",
idty_index
),
);
} }
_ => { _ => {
// Rule 4: If the identity is not validated, next_creatable_identity_on shoud be zero // Rule 4: If the identity is not validated, next_creatable_identity_on shoud be zero
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment