Further test cases

This commit is contained in:
Chris Wood
2024-01-02 15:43:34 +00:00
parent 8f9f0bfa42
commit 93bbb676d8
14 changed files with 22 additions and 8 deletions

View File

@@ -26,10 +26,10 @@ pub mod TelepenCommon {
let temp = contents.chars().nth(i).unwrap() as u32;
if temp >= 27 {
number.push_str(&(temp - 27).to_string());
number.push_str(&format!("{:0>2}", (temp - 27)));
}
else {
number.push_str(&(temp - 17).to_string());
number.push_str(&format!("{:0>2}", (temp - 17)));
}
}