add overall test

This commit is contained in:
Hamcha 2024-10-25 20:24:29 +02:00
parent 3fd7978b63
commit fa50107a04
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89
2 changed files with 11 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
/target
.idea
pkg

View file

@ -12,3 +12,13 @@ mod utils;
pub fn convert_to_hiragana(text: &str) -> String {
romanize(text).iter().map(|r| to_hiragana(r)).collect()
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_convert_to_hiragana() {
assert_eq!(convert_to_hiragana("assolutamente"), "あっそるためんて");
}
}