Bläddra i källkod

Update tests to match new subtraction code

Ian Goldberg 7 månader sedan
förälder
incheckning
aa81399d1a
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      sigma_compiler_core/src/sigma/types.rs

+ 2 - 2
sigma_compiler_core/src/sigma/types.rs

@@ -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