from text_selection_core.filtering.vocabulary_filtering import matches_any_oov


def test_empty__returns_false():
  assert not matches_any_oov([], ["a"])


def test_ab_b__returns_true():
  assert matches_any_oov(["a", "b"], ["b"])


def test_ab_ab__returns_false():
  assert not matches_any_oov(["a", "b"], ["a", "b"])

356cf94af5e5feb38769d51c83f6efa48e882f3d
<mask token>


def test_empty__returns_false():
    assert not matches_any_oov([], ['a'])


<mask token>

<mask token>


def test_empty__returns_false():
    assert not matches_any_oov([], ['a'])


def test_ab_b__returns_true():
    assert matches_any_oov(['a', 'b'], ['b'])


<mask token>

<mask token>


def test_empty__returns_false():
    assert not matches_any_oov([], ['a'])


def test_ab_b__returns_true():
    assert matches_any_oov(['a', 'b'], ['b'])


def test_ab_ab__returns_false():
    assert not matches_any_oov(['a', 'b'], ['a', 'b'])

from text_selection_core.filtering.vocabulary_filtering import matches_any_oov


def test_empty__returns_false():
    assert not matches_any_oov([], ['a'])


def test_ab_b__returns_true():
    assert matches_any_oov(['a', 'b'], ['b'])


def test_ab_ab__returns_false():
    assert not matches_any_oov(['a', 'b'], ['a', 'b'])

from text_selection_core.filtering.vocabulary_filtering import matches_any_oov


def test_empty__returns_false():
  assert not matches_any_oov([], ["a"])


def test_ab_b__returns_true():
  assert matches_any_oov(["a", "b"], ["b"])


def test_ab_ab__returns_false():
  assert not matches_any_oov(["a", "b"], ["a", "b"])
