~dricottone/hist

327e5cdf72f3e18b3e34d3f80eae8c0076ef9c6a — d_ricottone 7 years ago 5bca9aa
replace test func with direct executable

- test()
+ if __name__ ==  '__main__'
1 files changed, 2 insertions(+), 2 deletions(-)

M unicode_hist.py
M unicode_hist.py => unicode_hist.py +2 -2
@@ 108,11 108,11 @@ def hist (args, bin_num=1):

    return

def test ():
if __name__ == '__main__':
    import random
    i = 0
    lst = []
    while i < 100:
        lst.append(random.randrange(1,101))
        i = i + 1
    hist(lst, 11.0)
    hist(lst, 11)