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)
| 74 | |
| 75 | |
| 76 | def 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 |
nothing calls this directly
no test coverage detected