Skip to content

Commit 705dbf8

Browse files
committed
fix(test): relation with empty image should fail.
1 parent 219e52b commit 705dbf8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/tests/test_validation_criteria.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ mod instance_validation {
5555

5656
// Try to convert to canonical form
5757
let result = CanonicalLinearRelation::try_from(&relation);
58-
59-
// The conversion might succeed, but we should verify the image contains zero
60-
if let Ok(canonical) = result {
61-
assert!(canonical.image.iter().any(|&elem| elem == G::identity()));
62-
}
58+
assert!(result.is_err())
6359
}
6460

6561
#[test]

0 commit comments

Comments
 (0)