[−][src]Macro test_data_generation::realistic_test
This function calculates the percent difference between 2 strings.
Arguments
control: &String- The string to compare against. This would be the real data from the data sample.experiment: &String- The string to compare. This would be the generated data for which you want to find the percent difference.
Example
assert_eq!(realistic_test!("kitten", "sitting"), 76.92307692307692 as f64);