diff --git a/src/main.rs b/src/main.rs index 640fa6e..0de49dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -54,10 +54,11 @@ pub fn parse_and_calc_humanreadable(mut input: String) -> String { ) } #[test] -fn test_equals_readdition() { +fn test_character_readdition() { assert_eq!(parse_and_calc_humanreadable(" = 11".into()), " = 11"); assert_eq!(parse_and_calc_humanreadable(" &= 11".into()), " & = 11"); assert_eq!(parse_and_calc_humanreadable(" & 11".into()), " & 11"); + assert_eq!(parse_and_calc_humanreadable(" & 11 \\".into()), " & 11 \\"); } pub fn parse_and_calc(s: &str) -> Float {