示例#1
0
文件: test_stack.py 项目: lerouxb/ni
def test_stack_push_pop_pop():
    s = Stack()
    s.push(1)
    s.pop()
    assert s.pop() == None # is this really the right thing to do?
示例#2
0
文件: test_stack.py 项目: lerouxb/ni
def test_stack_push_pop():
    s = Stack()
    s.push(1)
    assert s.pop() == 1
    assert len(s) == 0