pub fn log_assertion(&mut self, passed: bool, assertion: &str, value: &str) {
        self.cur_asserts += 1;
        self.tot_asserts += 1;

        if !passed {
            self.cur_fails += 1;
            self.tot_fails += 1;
        }

        println!(
            "{} : Assertion: {}, Value: {}",
            if passed {
                "PASSED".green()
            } else {
                "FAILED".red()
            },
            assertion,
            value
        );
    }
/// Printing the status of the assertion and increment the assertion count
Printing the status of the assertion and increment the assertion count
Printing the status of the assertion and increment the assertion count
pub fn log_assertion(&mut self, passed: bool, assertion: &str, value: &str) {
        self.cur_asserts += 1;
        self.tot_asserts += 1;
        if !passed {
            self.cur_fails += 1;
            self.tot_fails += 1;
        }
        println!(
            "{} : Assertion: {}, Value: {}",
            if passed {
                "PASSED".green()
            } else {
                "FAILED".red()
            },
            assertion,
            value
        );
    }
pub fn log_assertion ( & mut self , passed : bool , assertion : & str , value : & str ) { self . cur_asserts += 1 ; self . tot_asserts += 1 ; if ! passed { self . cur_fails += 1 ; self . tot_fails += 1 ; } println ! ( " " if passed { " " green ( ) } else { " " red ( ) } assertion value ) ; }
Printing the status of the assertion and increment the assertion count
Printing the status of the assertion and increment the assertion count
&mut self
passed
bool
assertion
&str
value
&str