MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_matching_should_be_case_insensitive

Function test_matching_should_be_case_insensitive

tests/test_fuzzy_completion.py:76–87  ·  view source on GitHub ↗

Fuzzy matching should keep matches even if letter casing doesn't match. This test checks that variations of the text which have different casing are still matched.

(completer)

Source from the content-addressed store, hash-verified

74
75
76def test_matching_should_be_case_insensitive(completer):
77 """Fuzzy matching should keep matches even if letter casing doesn't match.
78
79 This test checks that variations of the text which have different casing
80 are still matched.
81 """
82
83 text = "foo"
84 collection = ["Foo", "FOO", "fOO"]
85 matches = completer.find_matches(text, collection)
86
87 assert len(matches) == 3

Callers

nothing calls this directly

Calls 1

find_matchesMethod · 0.80

Tested by

no test coverage detected