from src.prob22 import Solution

def test_prob22_1():
    sentense = "thequickbrownfox"
    voc = {'quick', 'brown', 'the', 'fox'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['the', 'quick', 'brown', 'fox']

def test_prob22_2():
    sentense = "bedbathandbeyond"
    voc = {'bed', 'bath', 'bedbath', 'and', 'beyond'}
    s = Solution()
    assert (s.better_solution(voc, sentense) == ['bed', 'bath', 'and', 'beyond']) or \
             (s.better_solution(voc, sentense) == ['bedbath', 'and', 'beyond'])

def test_prob22_3():
    sentense = "theremin"
    voc = {'the', 'theremin'}
    s = Solution()
    assert (s.better_solution(voc, sentense) == ['theremin'])
2d3e9ad6097287839a01e4a22e94e1d193a9efea
<mask token>


def test_prob22_2():
    sentense = 'bedbathandbeyond'
    voc = {'bed', 'bath', 'bedbath', 'and', 'beyond'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['bed', 'bath', 'and', 'beyond'
        ] or s.better_solution(voc, sentense) == ['bedbath', 'and', 'beyond']


<mask token>

<mask token>


def test_prob22_2():
    sentense = 'bedbathandbeyond'
    voc = {'bed', 'bath', 'bedbath', 'and', 'beyond'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['bed', 'bath', 'and', 'beyond'
        ] or s.better_solution(voc, sentense) == ['bedbath', 'and', 'beyond']


def test_prob22_3():
    sentense = 'theremin'
    voc = {'the', 'theremin'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['theremin']

<mask token>


def test_prob22_1():
    sentense = 'thequickbrownfox'
    voc = {'quick', 'brown', 'the', 'fox'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['the', 'quick', 'brown', 'fox']


def test_prob22_2():
    sentense = 'bedbathandbeyond'
    voc = {'bed', 'bath', 'bedbath', 'and', 'beyond'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['bed', 'bath', 'and', 'beyond'
        ] or s.better_solution(voc, sentense) == ['bedbath', 'and', 'beyond']


def test_prob22_3():
    sentense = 'theremin'
    voc = {'the', 'theremin'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['theremin']

from src.prob22 import Solution


def test_prob22_1():
    sentense = 'thequickbrownfox'
    voc = {'quick', 'brown', 'the', 'fox'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['the', 'quick', 'brown', 'fox']


def test_prob22_2():
    sentense = 'bedbathandbeyond'
    voc = {'bed', 'bath', 'bedbath', 'and', 'beyond'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['bed', 'bath', 'and', 'beyond'
        ] or s.better_solution(voc, sentense) == ['bedbath', 'and', 'beyond']


def test_prob22_3():
    sentense = 'theremin'
    voc = {'the', 'theremin'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['theremin']

from src.prob22 import Solution

def test_prob22_1():
    sentense = "thequickbrownfox"
    voc = {'quick', 'brown', 'the', 'fox'}
    s = Solution()
    assert s.better_solution(voc, sentense) == ['the', 'quick', 'brown', 'fox']

def test_prob22_2():
    sentense = "bedbathandbeyond"
    voc = {'bed', 'bath', 'bedbath', 'and', 'beyond'}
    s = Solution()
    assert (s.better_solution(voc, sentense) == ['bed', 'bath', 'and', 'beyond']) or \
             (s.better_solution(voc, sentense) == ['bedbath', 'and', 'beyond'])

def test_prob22_3():
    sentense = "theremin"
    voc = {'the', 'theremin'}
    s = Solution()
    assert (s.better_solution(voc, sentense) == ['theremin'])