Skip to content

Commit

Permalink
Test: use new expression structures
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Jan 19, 2024
1 parent 3311558 commit 72e1460
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions kimchi/src/folding/test.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use crate::{
circuits::{
expr::Variable,
gate::CurrOrNext::{self, Curr},
},
circuits::gate::CurrOrNext::{self, Curr},
folding::{
expressions::{extract_terms, ExtendedFoldingColumn, FoldingColumnTrait, FoldingExp},
expressions::{extract_terms, FoldingColumnTrait},
FoldingConfig, FoldingEnv, Instance, Sponge, Witness,
},
};
Expand Down Expand Up @@ -100,12 +97,14 @@ impl FoldingConfig for TestConfig {
#[test]
//not testing much right now, just to observe what quadraticization does
fn test_term_separation() {
use FoldingExp::*;
let col = |col| Cell(ExtendedFoldingColumn::Inner(Variable { col, row: Curr }));
use crate::circuits::expr::Variable;
use crate::folding::expressions::ExtendedFoldingColumn;
use crate::folding::expressions::FoldingExp;
let col = |col| FoldingExp::Atom(ExtendedFoldingColumn::Inner(Variable { col, row: Curr }));
let t1: FoldingExp<TestConfig> = (col(0) + col(1)) * (col(2) + col(3));
let t2 = col(1).double()
- (col(2)
+ Cell(ExtendedFoldingColumn::Constant(
+ FoldingExp::Atom(ExtendedFoldingColumn::Constant(
<<Pallas as AffineCurve>::ScalarField>::zero(),
)));
let test_exp = t1 + t2;
Expand Down

0 comments on commit 72e1460

Please sign in to comment.