pat2vec.pat2vec_search.test_matcher

Classes

TestMatcher([methodName])

Unit tests for the matcher utility module.

class pat2vec.pat2vec_search.test_matcher.TestMatcher(methodName='runTest')[source]

Bases: TestCase

Unit tests for the matcher utility module.

test_match_terms_in_text_basic()[source]

Test basic term matching (case-insensitive, whole words).

test_match_terms_in_text_case_insensitivity()[source]

Test case-insensitivity of term matching.

test_match_terms_in_text_partial_words()[source]

Test that partial word matches are not returned.

test_match_terms_in_text_empty_inputs()[source]

Test behavior with empty text or term lists.

test_find_all_matches_basic()[source]

Test finding all matches for given patterns.

test_find_all_matches_no_match()[source]

Test when no patterns match the text.