pub struct Unit { /* private fields */ }
Implementations§
source§impl Unit
impl Unit
sourcepub fn begin(self, actual: &String, expected: &str) -> Unit
pub fn begin(self, actual: &String, expected: &str) -> Unit
Check if a string start with the expected value
sourcepub fn finnish(self, actual: &String, expected: &str) -> Unit
pub fn finnish(self, actual: &String, expected: &str) -> Unit
Check if the string finnish wish the expected value
sourcepub fn theory(
self,
description: &str,
f: &dyn Fn() -> bool,
expected: bool
) -> Unit
pub fn theory( self, description: &str, f: &dyn Fn() -> bool, expected: bool ) -> Unit
Check a theory
pub fn not_equal(self, actual: String, expected: &str) -> Unit
sourcepub fn equal(self, actual: &String, expected: &str) -> Unit
pub fn equal(self, actual: &String, expected: &str) -> Unit
Chef if actual is equal to expected
sourcepub fn find(self, actual: &String, expected: &str) -> Unit
pub fn find(self, actual: &String, expected: &str) -> Unit
Check if expected is find in actual string
sourcepub fn not_find(self, actual: String, expected: &str) -> Unit
pub fn not_find(self, actual: String, expected: &str) -> Unit
Check if expected value is not find in the actual string
sourcepub fn ascii(self, actual: String) -> Unit
pub fn ascii(self, actual: String) -> Unit
Check if expected value is not find in the actual string
sourcepub fn contains(self, actual: &String, expected: &str) -> Unit
pub fn contains(self, actual: &String, expected: &str) -> Unit
Check if a string contains a string
sourcepub fn superior(self, actual: usize, expected: usize) -> Unit
pub fn superior(self, actual: usize, expected: usize) -> Unit
Check if the actual value is superior to the expected value
sourcepub fn inferior(self, actual: usize, expected: usize) -> Unit
pub fn inferior(self, actual: usize, expected: usize) -> Unit
Check if the actual value is inferior to the expected value