|
@@ -859,13 +859,13 @@ mod tests {
|
|
|
&vars,
|
|
&vars,
|
|
|
parse_quote! {(a-(2-3))*(A+(3*4)*A)},
|
|
parse_quote! {(a-(2-3))*(A+(3*4)*A)},
|
|
|
quote! {
|
|
quote! {
|
|
|
- (a-(Scalar::from_u128(1u128).neg()))*(A+A*(Scalar::from_u128(12u128))) },
|
|
|
|
|
|
|
+ (a+(-(Scalar::from_u128(1u128).neg())))*(A+A*(Scalar::from_u128(12u128))) },
|
|
|
);
|
|
);
|
|
|
check_tokens(
|
|
check_tokens(
|
|
|
&vars,
|
|
&vars,
|
|
|
parse_quote! {(a-(2-3))*(A+A*(3*4))},
|
|
parse_quote! {(a-(2-3))*(A+A*(3*4))},
|
|
|
quote! {
|
|
quote! {
|
|
|
- (a-(Scalar::from_u128(1u128).neg()))*(A+A*(Scalar::from_u128(12u128))) },
|
|
|
|
|
|
|
+ (a+(-(Scalar::from_u128(1u128).neg())))*(A+A*(Scalar::from_u128(12u128))) },
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
// Tests that should fail
|
|
// Tests that should fail
|