test: add test for backslash re-addition
This commit is contained in:
parent
9bacccfb71
commit
396deba4e1
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue