#[test]
pub fn test_parse_asterix_length() {
let total: &str = "11+8*n";
let numbers = total.split(|c| c == '+' || c == '*');
let mut count: u8 = 0;
for part in numbers {
println!("Part[{count}] = [{part}]");
count = count + 1;
}
/*let charac = total.match_indices(|c| c != '+' && c != '*');
count = 0;
for (idx, part) in charac {
println!("Part[{count}] = location[{idx}], value[{part}]");
count = count + 1;
} */
let symbols = total.match_indices(|c| c == '+' || c == '*');
count = 0;
for (idx, part) in symbols {
println!("Part[{count}] = location[{idx}], value[{part}]");
count = count + 1;
}
}