We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f113185 commit 7d94f15Copy full SHA for 7d94f15
src/tests/test_validation_criteria.rs
@@ -131,6 +131,20 @@ mod instance_validation {
131
let result = CanonicalLinearRelation::try_from(&relation);
132
assert!(result.is_err());
133
}
134
+
135
+ #[test]
136
+ fn without_witness() {
137
+ let B = G::generator();
138
+ let x = Scalar::from(42);
139
140
+ let mut linear_relation = LinearRelation::<G>::new();
141
+ let B_var = linear_relation.allocate_element();
142
+ let _X_var = linear_relation.allocate_eq(B_var * x + B_var * Scalar::from(3));
143
144
+ linear_relation.set_element(B_var, B);
145
+ let result = CanonicalLinearRelation::try_from(&linear_relation);
146
+ assert!(result.is_err());
147
+ }
148
149
150
#[cfg(test)]
0 commit comments