diff --git a/src/lib.rs b/src/lib.rs index b3336a7..b870aa6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -822,6 +822,32 @@ mod tests { ); } + #[test] + fn apply_furigana_08() { + let surface = "お疲れ様"; + let kana = "オツカレサマ"; + let pairs = apply_furigana( + surface, + kana, + "お疲れ様", + &FnvHashSet::default(), + &FnvHashSet::default(), + &[], + None, + None, + ); + + assert_eq!( + &[ + ("お".into(), "".into()), + ("疲".into(), "ツカ".into()), + ("れ".into(), "".into()), + ("様".into(), "サマ".into()), + ], + &pairs[..] + ); + } + #[test] fn is_equivalent_kana_01() { assert!(is_equivalent_kana('か', 'カ'));