Example #1
0
def ui_sterge_cheltuieli_din_ziua_data(l, undolist):
    zi = 0
    try:
        zi = int(input("Ziua: "))
    except ValueError:
        print("Ati introdus date gresite")
    sterge_cheltuieli_din_ziua_data(l, zi, undolist)
def ui_sterge_cheltuieli_din_ziua_data(l, undolist):
    zi = 0
    try:
        zi = int(input("Ziua: "))
    except ValueError:
        print("Ati introdus date gresite")
    sterge_cheltuieli_din_ziua_data(l, zi, undolist)
def test_sterge_cheltuieli_din_ziua_data():
    l=setUp()
    undolist = setUp()
    assert(len(l) == 5)
    
    sterge_cheltuieli_din_ziua_data(l,5, undolist)
    assert(len(l) == 4)
    
    sterge_cheltuieli_din_ziua_data(l, 4, undolist)
    assert(len(l) == 2)
def test_sterge_cheltuieli_din_ziua_data():
    l = setUp()
    undolist = setUp()
    assert (len(l) == 5)

    sterge_cheltuieli_din_ziua_data(l, 5, undolist)
    assert (len(l) == 4)

    sterge_cheltuieli_din_ziua_data(l, 4, undolist)
    assert (len(l) == 2)