Example #1
0
def main(args):
    if argv.__len__() != 2:
        return print_help(84)
    try:
        const = float(args[1])
        if not 0 < const < 2.5:
            return print_help(84)
        pgrm = Duck(const).run()
        pgrm.print()
    except ValueError:
        return print_help(84)
Example #2
0
def test_ducks_full(a, xesp_m, xesp_s, xstd_dev, xper_5_m, xper_5_s, xper_9_m,
                    xper_9_s, xtb_1, xtb_2):
    duck = Duck(a).run()
    calc_esperance(duck, xesp_m, xesp_s)
    calc_std_dev(duck, xstd_dev)
    calc_percent(duck, xper_5_m, xper_5_s, xper_9_m, xper_9_s)
    calc_time_back(duck, xtb_1, xtb_2)
Example #3
0
def test_ducks_esperance(a, xstd_dev):
    duck = Duck(a).run()
    calc_std_dev(duck, xstd_dev)
Example #4
0
def test_ducks_esperance(a, xesp_m, xesp_s):
    duck = Duck(a).run()
    calc_esperance(duck, xesp_m, xesp_s)
Example #5
0
def test_ducks(a):
    p1 = Duck(a)
    assert p1 is not None
Example #6
0
def test_ducks_time_back(a, xtb_1, xtb_2):
    duck = Duck(a).run()
    calc_time_back(duck, xtb_1, xtb_2)
Example #7
0
def test_ducks_percent(a, xper_5_m, xper_5_s, xper_9_m, xper_9_s):
    duck = Duck(a).run()
    calc_percent(duck, xper_5_m, xper_5_s, xper_9_m, xper_9_s)