Skip to content

Commit

Permalink
fix(test): Remove false assertion when counting nodes
Browse files Browse the repository at this point in the history
The number of constants do not have to match the number of requested
constants in the arbitrary implementation because of constant folding.
So when an expression is formed from two constants, it results in a new
constant (as it should) and not a BinOp expression.
  • Loading branch information
Sword-Smith committed Sep 18, 2024
1 parent ba02727 commit 1156678
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions triton-constraint-circuit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1834,11 +1834,6 @@ mod tests {
);

prop_assert_eq!(10, ConstraintCircuitMonad::num_inputs(&multicircuit_monad));
prop_assert_eq!(
10,
ConstraintCircuitMonad::num_bfield_constants(&multicircuit_monad)
+ ConstraintCircuitMonad::num_xfield_constants(&multicircuit_monad)
);
}

/// Test the completeness and soundness of the `apply_substitution` function,
Expand Down

0 comments on commit 1156678

Please sign in to comment.