예제 #1
0
def test_Queue_isEmpty_not_empty():
    my_queue = Queue()
    my_queue.enqueue(1)
    my_queue.enqueue(2)
    my_queue.enqueue(3)
    actual = my_queue.is_empty()
    expected = False
    assert actual == expected
예제 #2
0
def test_Queue_isEmpty_empty():
    my_queue = Queue()
    actual = my_queue.is_empty()
    expected = True
    assert actual == expected