diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-11 11:46:47 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-11 11:46:47 +0200 |
commit | c98f902eeae2ac9952173385b146249f11364765 (patch) | |
tree | 88179439f59608ccde7d32ded1b7dcf1602ccc5e /tests/definition.rs | |
parent | 1fe3139713fb9e5f000af458154ddf634d6ebe64 (diff) | |
download | markdown-rs-c98f902eeae2ac9952173385b146249f11364765.tar.gz markdown-rs-c98f902eeae2ac9952173385b146249f11364765.tar.bz2 markdown-rs-c98f902eeae2ac9952173385b146249f11364765.zip |
Add tests for matching identifiers w/ turkish `i`
Diffstat (limited to 'tests/definition.rs')
-rw-r--r-- | tests/definition.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/definition.rs b/tests/definition.rs index 0686b6d..9bf4072 100644 --- a/tests/definition.rs +++ b/tests/definition.rs @@ -112,6 +112,31 @@ fn definition() { ); assert_eq!( + micromark("[ı]: a\n\n[I]"), + "<p><a href=\"a\">I</a></p>", + "should match w/ undotted turkish i (1)" + ); + assert_eq!( + micromark("[I]: a\n\n[ı]"), + "<p><a href=\"a\">ı</a></p>", + "should match w/ undotted turkish i (2)" + ); + // Ref: <https://spec.commonmark.org/dingus/?text=%5Bi%5D%3A%20a%0A%0A%5Bİ%5D> + // GFM parses the same (last checked: 2022-07-11). + assert_eq!( + micromark("[i]: a\n\n[İ]"), + "<p>[İ]</p>", + "should *not* match w/ dotted turkish i (1)" + ); + // Ref: <https://spec.commonmark.org/dingus/?text=%5Bİ%5D%3A%20a%0A%0A%5Bi%5D> + // GFM parses the same (last checked: 2022-07-11). + assert_eq!( + micromark("[İ]: a\n\n[i]"), + "<p>[i]</p>", + "should *not* match w/ dotted turkish i (2)" + ); + + assert_eq!( micromark("[foo]: /url"), "", "should not contribute anything w/o reference (1)" |