Modern Apps git

← Modern-Apps.git

library:ml: cover both supertonic abbreviations in one sentence

Commit
37e1331d0d4eaa30ecd43ec29c7b37f350731e50
Author
vayun-mathur <[email protected]>
When
2026-08-31 18:35 UTC (3 months ago)
Parents
06dfe1f

Diff

library/ml/src/main/rust/src/post/supertonic.rs
diff --git a/library/ml/src/main/rust/src/post/supertonic.rs b/library/ml/src/main/rust/src/post/supertonic.rsindex f7cdc4238c..342c75842f 100644--- a/library/ml/src/main/rust/src/post/supertonic.rs+++ b/library/ml/src/main/rust/src/post/supertonic.rs@@ -600,6 +600,14 @@ mod tests {         // the trailing period and language tag that `to_ids` is responsible for.         let raw = "\u{201C}Ready?\u{201D} she asked \u{2014} e.g., [softly] \u{1F600} me@here";         assert_eq!(normalise(raw), "\"Ready?\" she asked - for example, softly me at here");++        // Both abbreviations in one sentence, each followed by ordinary words.+        let two = "\u{201C}Ready?\u{201D} she asked \u{2014} e.g., the meeting\u{2019}s at three, \+                   i.e., after lunch";+        assert_eq!(+            normalise(two),+            "\"Ready?\" she asked - for example, the meeting's at three, that is, after lunch"+        );     }      #[test]