You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: root.rs
    path of file: ./repos/Peroxide/tests
    
    the code of the file until where you have to start completion: // #[macro_use]
extern crate peroxide;
use peroxide::fuga::*;
// use peroxide::numerical::root::*;

#[test]
fn test_root_finder() -> Result<(), RootError> {
    let init = RootState::I(0.1f64, 5f64);
    let init_p = RootState::P(0.1f64);
    let init_s = RootState::I(0.1f64, 0.2f64);
    // Bisection
    let mut a1 = RootFinder::new(init, RootFind::Bisection, f_exp)?;
    let mut b1 = RootFinder::new(init, RootFind::Bisection, f_ln)?;
    let mut c1 = RootFinder::new(init, RootFind::Bisection, f_sqrt)?;
    a1.set_tol(1e-15);
    b1.set_tol(1e-15);
    c1.set_tol(1e-15);
    // FalsePosition
    let mut a2 = RootFinder::new(init, RootFind::FalsePosition, f_exp)?;
    let mut b2 = RootFinder::new(init, RootFind::FalsePosition, f_ln)?;
    let mut c2 = RootFinder::new(init, RootFind::FalsePosition, f_sqrt)?;
    a2.set_times(10000);
    b2.set_times(10000);
    c2.set_times(10000);
    // Secant
    let mut a3 = RootFinder::new(init_s, RootFind::Secant, f_exp)?;
    let mut b3 = RootFinder::new(init_s, RootFind::Secant, f_ln)?;
    let mut c3 = RootFinder::new(init_s, RootFind::Secant, f_sqrt)?;
    a3.set_times(10000);
    b3.set_times(10000);
    c3.set_times(10000);
    // Newton
    let mut a4 = RootFinder::new(init_p, RootFind::Newton, f_exp)?;
    let mut b4 = RootFinder:
    
fn test_root_finder() -> Result<(), RootError> {
    let init = RootState::I(0.1f64, 5f64);
    let init_p = RootState::P(0.1f64);
    let init_s = RootState::I(0.1f64, 0.2f64);
    // Bisection
    let mut a1 = RootFinder::new(init, RootFind::Bisection, f_exp)?;
    let mut b1 = RootFinder::new(init, RootFind::Bisection, f_ln)?;
    let mut c1 = RootFinder::new(init, RootFind::Bisection, f_sqrt)?;
    a1.set_tol(1e-15);
    b1.set_tol(1e-15);
    c1.set_tol(1e-15);
    // FalsePosition
    let mut a2 = RootFinder::new(init, RootFind::FalsePosition, f_exp)?;
    let mut b2 = RootFinder::new(init, RootFind::FalsePosition, f_ln)?;
    let mut c2 = RootFinder::new(init, RootFind::FalsePosition, f_sqrt)?;
    a2.set_times(10000);
    b2.set_times(10000);
    c2.set_times(10000);
    // Secant
    let mut a3 = RootFinder::new(init_s, RootFind::Secant, f_exp)?;
    let mut b3 = RootFinder::new(init_s, RootFind::Secant, f_ln)?;
    let mut c3 = RootFinder::new(init_s, RootFind::Secant, f_sqrt)?;
    a3.set_times(10000);
    b3.set_times(10000);
    c3.set_times(10000);
    // Newton
    let mut a4 = RootFinder::new(init_p, RootFind::Newton, f_exp)?;
    let mut b4 = RootFinder::new(init_p, RootFind::Newton, f_ln)?;
    let mut c4 = RootFinder::new(init_p, RootFind::Newton, f_sqrt)?;
    a4.set_tol(1e-15);
    b4.set_tol(1e-15);
    c4.set_tol(1e-15);

    let x1 = a1.find_root()?;
    let x2 = b1.find_root()?;
    let x3 = c1.find_root()?;
    let y1 = a2.find_root()?;
    let y2 = b2.find_root()?;
    let y3 = c2.find_root()?;
    let z1 = a3.find_root()?;
    let z2 = b3.find_root()?;
    let z3 = c3.find_root()?;
    let w1 = a4.find_root()?;
    let w2 = b4.find_root()?;
    let w3 = c4.find_root()?;
    x1.print();
    x2.print();
    x3.print();
    y1.print();
    y2.print();
    y3.print();
    z1.print();
    z2.print();
    z3.print();
    w1.print();
    w2.print();
    w3.print();

    Ok(())
}