Add test for system zero

This commit is contained in:
wborgeaud 2022-02-04 16:02:45 +01:00
parent d99cabded9
commit 1011c302ac
3 changed files with 16 additions and 4 deletions

View File

@ -97,7 +97,7 @@ mod tests {
use crate::config::StarkConfig;
use crate::fibonacci_stark::FibonacciStark;
use crate::prover::prove;
use crate::stark_testing::test_low_degree;
use crate::stark_testing::test_stark_low_degree;
use crate::verifier::verify;
fn fibonacci(n: usize, x0: usize, x1: usize) -> usize {
@ -141,6 +141,6 @@ mod tests {
let config = StarkConfig::standard_fast_config();
let num_rows = 1 << 5;
let stark = S::new(num_rows);
test_low_degree(stark)
test_stark_low_degree(stark)
}
}

View File

@ -12,10 +12,9 @@ mod get_challenges;
pub mod proof;
pub mod prover;
pub mod stark;
pub mod stark_testing;
pub mod vars;
pub mod verifier;
#[cfg(test)]
pub mod fibonacci_stark;
#[cfg(test)]
pub mod stark_testing;

View File

@ -97,6 +97,7 @@ mod tests {
use starky::config::StarkConfig;
use starky::prover::prove;
use starky::stark::Stark;
use starky::stark_testing::test_stark_low_degree;
use starky::verifier::verify;
use crate::system_zero::SystemZero;
@ -118,4 +119,16 @@ mod tests {
verify(system, proof, &config)
}
#[test]
#[ignore] // TODO
fn degree() -> Result<()> {
type F = GoldilocksField;
type C = PoseidonGoldilocksConfig;
const D: usize = 2;
type S = SystemZero<F, D>;
let system = S::default();
test_stark_low_degree(system)
}
}