Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Fix case_short_8 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
aslamplr committed Mar 10, 2020
1 parent 74a3472 commit 17e2fcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn convert_to_mltt(
keys.sort_by(|a, b| b.len().cmp(&a.len()));
let to_string_vec = |x: Vec<&str>| x.into_iter().map(String::from).collect::<Vec<_>>();
let _right_combinators = to_string_vec(vec!["ാ", "ി", "ീ", "ു", "ൂ", "ൃ", "ൄ", "ൌ", "്"]);
let left_combinators = to_string_vec(vec!["െ", "േ", "ൈ"]);
let left_combinators = to_string_vec(vec!["െ", "േ", "ൈ", "്ര"]);
let combinators = to_string_vec(vec!["ൊ", "ോ"]);

for key in combinators {
Expand All @@ -23,6 +23,8 @@ pub fn convert_to_mltt(
let new_val = format!("{}{}{}", split_val[1], mid_val, split_val[2]);
text_to_convert = text_to_convert.replace(&new_key, &new_val);
}
} else {
eprintln!("{:#?} not found in the map!", key);
}
}

Expand Down Expand Up @@ -65,8 +67,6 @@ pub fn convert_to_mltt(
for key in keys {
if let Some(value) = map.get(&key) {
text_to_convert = text_to_convert.replace(&key, value);
} else {
eprintln!("{:#?} not found in the map!", key);
}
}
Ok(text_to_convert)
Expand Down
1 change: 0 additions & 1 deletion tests/convertion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ fn convert_case_short_7() -> Result<(), Box<dyn Error>> {
}

#[test]
#[ignore]
fn convert_case_short_8() -> Result<(), Box<dyn Error>> {
test_convertion(
r#"ക്രിമിനൽ"#,
Expand Down

0 comments on commit 17e2fcd

Please sign in to comment.