[gtksourceview] testsuite: test some match info flags



commit ad615c2c9638fb974b3c879933639c8f1c453f8f
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 2 15:28:02 2021 -0700

    testsuite: test some match info flags

 testsuite/test-regex.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/testsuite/test-regex.c b/testsuite/test-regex.c
index 0a13670e..18cdef0e 100644
--- a/testsuite/test-regex.c
+++ b/testsuite/test-regex.c
@@ -128,6 +128,9 @@ test_compare (void)
   compare_impl_regex_to_g_regex ("hello\nworld\n", "(.*)*", 0, 0);
   compare_impl_regex_to_g_regex ("hello\nworld\n", "(.*)*", G_REGEX_OPTIMIZE, 0);
 
+  compare_impl_regex_to_g_regex ("hello\nworld\n", "\\w+", 0, G_REGEX_MATCH_NOTBOL | G_REGEX_MATCH_PARTIAL);
+  compare_impl_regex_to_g_regex ("hello\nworld\n", "\\w+", G_REGEX_OPTIMIZE, G_REGEX_MATCH_NOTBOL | 
G_REGEX_MATCH_PARTIAL);
+
   compare_impl_regex_to_g_regex ("aa#bb", "(\\w+)#(\\w+)", 0, 0);
   compare_impl_regex_to_g_regex ("aa#bb", "(\\w+)#(\\w+)", G_REGEX_OPTIMIZE, 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]