Beispiel #1
0
def test_top():
    colors = Stack()
    colors.push("Cadmium Red Light")
    assert colors._top() == "Cadmium Red Light"
    colors.push("Hansa Yellow")
    assert colors._top() == "Hansa Yellow"