From f5198a1392d91942a62004ce738a5897d7b54fcd Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Mon, 29 Dec 2025 10:20:30 +0900 Subject: [PATCH] Add failing unit test for bug. --- src/lib.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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('か', 'カ'));