From c98f902eeae2ac9952173385b146249f11364765 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 11 Jul 2022 11:46:47 +0200 Subject: Add tests for matching identifiers w/ turkish `i` --- tests/definition.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/definition.rs') diff --git a/tests/definition.rs b/tests/definition.rs index 0686b6d..9bf4072 100644 --- a/tests/definition.rs +++ b/tests/definition.rs @@ -111,6 +111,31 @@ fn definition() { "should match w/ case-insensitive (2)" ); + assert_eq!( + micromark("[ı]: a\n\n[I]"), + "

I

", + "should match w/ undotted turkish i (1)" + ); + assert_eq!( + micromark("[I]: a\n\n[ı]"), + "

ı

", + "should match w/ undotted turkish i (2)" + ); + // Ref: + // GFM parses the same (last checked: 2022-07-11). + assert_eq!( + micromark("[i]: a\n\n[İ]"), + "

[İ]

", + "should *not* match w/ dotted turkish i (1)" + ); + // Ref: + // GFM parses the same (last checked: 2022-07-11). + assert_eq!( + micromark("[İ]: a\n\n[i]"), + "

[i]

", + "should *not* match w/ dotted turkish i (2)" + ); + assert_eq!( micromark("[foo]: /url"), "", -- cgit