def test_is_word(): assert rsre_char.is_word(ord('A')) assert rsre_char.is_word(ord('_')) assert not rsre_char.is_word(UPPER_PI) assert not rsre_char.is_word(LOWER_PI) assert not rsre_char.is_word(ord(',')) # assert rsre_char.is_uni_word(ord('A')) assert rsre_char.is_uni_word(ord('_')) assert rsre_char.is_uni_word(UPPER_PI) assert rsre_char.is_uni_word(LOWER_PI) assert not rsre_char.is_uni_word(ord(','))