From e3d7d0592cdcb09034ad98b11650c722e5fa45cb Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 2 Apr 2024 14:04:29 +0200 Subject: [PATCH] tests: add test case The test case makes sure that the dot (.) in a regexp doesn't match unicode characters by default. --- lib/src/tests/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/tests/mod.rs b/lib/src/tests/mod.rs index b185a356a..6f0408569 100644 --- a/lib/src/tests/mod.rs +++ b/lib/src/tests/mod.rs @@ -280,6 +280,7 @@ fn string_operations() { // a single byte, not a character. By turning on unicode support // with the `(?u)` prefix we make the dot to match unicode // characters. + condition_false!(r#""🙈🙉🙊" matches /^...$/"#); condition_true!(r#""🙈🙉🙊" matches /(?u)^...$/"#); }