Skip to content

Commit

Permalink
chore: remove smoke test (no_panic_check)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed May 27, 2024
1 parent a2e1ebd commit c808ed7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions erasure_codes/src/reed_solomon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,26 +134,6 @@ fn construct_vanishing_poly_from_erasures(
}
}

#[test]
fn smoke_test_recovery() {
let poly_coeff = vec![
Scalar::from(1),
Scalar::from(2),
Scalar::from(4),
Scalar::from(8),
];

let domain = Domain::new(poly_coeff.len() * 2);
let mut evaluations = domain.fft_scalars(poly_coeff.clone());

// add errors into evaluations
evaluations[1] = Scalar::from(0);
evaluations[2] = Scalar::from(0);

let _recovered_polynomial =
recover_polynomial_coefficient(&domain, evaluations, Erasures::Indices(vec![1, 2]));
}

#[test]
fn smoke_test_recovery_no_errors() {
let rs = ReedSolomon::new(16, 2);
Expand Down

0 comments on commit c808ed7

Please sign in to comment.