From 37ed7f12516a4a088e0d2f3bf42900181315140d Mon Sep 17 00:00:00 2001 From: JohJohan Date: Thu, 26 May 2022 10:14:18 +0200 Subject: [PATCH 1/3] 132 Add test match with spaces in braces --- glob/braces.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glob/braces.in b/glob/braces.in index 0400aeb..9b8c796 100644 --- a/glob/braces.in +++ b/glob/braces.in @@ -6,6 +6,10 @@ root=true [*.{py,js,html}] choice=true +; word choice with spaces +[*.{py, js, html}] +choice=true + ; single choice [{single}.b] choice=single From 281e1612ca84c53f9774b1221de3d3b5864a1b38 Mon Sep 17 00:00:00 2001 From: JohJohan Date: Fri, 27 May 2022 11:36:42 +0200 Subject: [PATCH 2/3] 132 Add test --- glob/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/glob/CMakeLists.txt b/glob/CMakeLists.txt index 8b30387..fa1dfde 100644 --- a/glob/CMakeLists.txt +++ b/glob/CMakeLists.txt @@ -125,6 +125,12 @@ new_ec_test(braces_word_choice2 braces.in test.js "^choice=true[ \t\n\r]*$") new_ec_test(braces_word_choice3 braces.in test.html "^choice=true[ \t\n\r]*$") new_ec_test(braces_word_choice4 braces.in test.pyc "^[ \t\n\r]*$") +# word choice with spaces +new_ec_test(braces_word_choice5 braces.in test.py "^choice=true[ \t\n\r]*$") +new_ec_test(braces_word_choice6 braces.in test.js "^choice=true[ \t\n\r]*$") +new_ec_test(braces_word_choice7 braces.in test.html "^choice=true[ \t\n\r]*$") +new_ec_test(braces_word_choice8 braces.in test.pyc "^[ \t\n\r]*$") + # single choice new_ec_test(braces_single_choice braces.in {single}.b "^choice=single[ \t\n\r]*$") new_ec_test(braces_single_choice_negative braces.in .b "^[ \t\n\r]*$") From 2e9128066120488774f2fc3bc53ead9e07573810 Mon Sep 17 00:00:00 2001 From: JohJohan Date: Tue, 21 Jun 2022 21:23:13 +0200 Subject: [PATCH 3/3] 132 Make test more unique --- glob/CMakeLists.txt | 7 +++---- glob/braces.in | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/glob/CMakeLists.txt b/glob/CMakeLists.txt index fa1dfde..a239d91 100644 --- a/glob/CMakeLists.txt +++ b/glob/CMakeLists.txt @@ -126,10 +126,9 @@ new_ec_test(braces_word_choice3 braces.in test.html "^choice=true[ \t\n\r]*$") new_ec_test(braces_word_choice4 braces.in test.pyc "^[ \t\n\r]*$") # word choice with spaces -new_ec_test(braces_word_choice5 braces.in test.py "^choice=true[ \t\n\r]*$") -new_ec_test(braces_word_choice6 braces.in test.js "^choice=true[ \t\n\r]*$") -new_ec_test(braces_word_choice7 braces.in test.html "^choice=true[ \t\n\r]*$") -new_ec_test(braces_word_choice8 braces.in test.pyc "^[ \t\n\r]*$") +new_ec_test(braces_word_choice5 braces.in test.pl "^choice=spaces[ \t\n\r]*$") +new_ec_test(braces_word_choice6 braces.in test.txt "^choice=spaces[ \t\n\r]*$") +new_ec_test(braces_word_choice7 braces.in test.htm "^choice=spaces[ \t\n\r]*$") # single choice new_ec_test(braces_single_choice braces.in {single}.b "^choice=single[ \t\n\r]*$") diff --git a/glob/braces.in b/glob/braces.in index 9b8c796..edf9e4a 100644 --- a/glob/braces.in +++ b/glob/braces.in @@ -7,8 +7,8 @@ root=true choice=true ; word choice with spaces -[*.{py, js, html}] -choice=true +[*.{pl, txt, htm}] +choice=spaces ; single choice [{single}.b]