blob: 572adf69de7c03b5d56e4818f5d0a501408e14a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# -*- coding: utf-8 -*-
# (c) Martin Neppel 2009
print("====================================_____________________=============")
print("===== ReckonPrimer.tests/addsubsimp/test_to_str_99.py ================")
from functions import to_str_99
print("----- to_str_99 ------------------------------------------------------")
ls = to_str_99(9)
print(ls)
if ls != ['9']:
raise Exception()
ls = to_str_99(98)
print(ls)
if ls != ['9', '8']:
raise Exception()
ls = to_str_99(987654321)
print(ls)
if ls != ['9', '8', '7', '6', '5', '4', '3', '2', '1']:
raise Exception()
print("===== ReckonPrimer.tests/addsubsimp/test_to_str_99.py ================")
print("=========================== SUCCESS ~~~~~~~~~~~~~~~~~~~~~ ============")
|