Skip to content

Commit

Permalink
grep/pcre2 tests: reword comments referring to kwset
Browse files Browse the repository at this point in the history
The kwset optimization has not been used by grep since
48de2a7 (grep: remove the kwset optimization, 2019-07-01).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
avar authored and gitster committed May 11, 2021
1 parent f0d4d39 commit ecbff14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t7816-grep-binary-pattern.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ test_expect_success 'setup' "
git commit -m.
"

# Simple fixed-string matching that can use kwset (no -i && non-ASCII)
# Simple fixed-string matching
nul_match P P P '-F' 'yQf'
nul_match P P P '-F' 'yQx'
nul_match P P P '-Fi' 'YQf'
Expand All @@ -78,7 +78,7 @@ nul_match P P P '-Fi' '[Y]QF'
nul_match P P P '-F' 'æQ[ð]'
nul_match P P P '-F' '[æ]Qð'

# The -F kwset codepath can't handle -i && non-ASCII...
# Matching pattern and subject case with -i
nul_match P 1 1 '-i' '[æ]Qð'

# ...PCRE v2 only matches non-ASCII with -i casefolding under UTF-8
Expand Down

0 comments on commit ecbff14

Please sign in to comment.