Skip to content

Commit 2b3565d

Browse files
committed
对type.py的测试
1 parent 6231e58 commit 2b3565d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

test.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def 方法测试():
3333
print(b, type(b))
3434
print(a.subString(0), a.subString(0, 3))
3535
print(a.toList())
36+
print(a.getNormal())
3637

3738
class Integer测试:
3839
@staticmethod
@@ -61,6 +62,7 @@ def 方法测试():
6162
b = a.replace("114", "")
6263
print(b, type(b))
6364
print(a.isDivisible(114514), a.isDivisible(b))
65+
print(a.getNormal())
6466

6567
class List测试:
6668
@staticmethod
@@ -83,11 +85,19 @@ def 运算符测试():
8385
@staticmethod
8486
def 方法测试():
8587
a = List(["1", "2", "3"])
86-
print(a.length)
87-
print(a.toIntList())
8888
b = List([1, 2, 3])
89-
print(b.length)
89+
c = List([1, "2", "3", 4])
90+
d = List(["a", List(["b"])])
91+
print(a, a.length)
92+
print(a.toIntList())
93+
print(a.getNormal())
94+
print(b, b.length)
9095
print(b.toStrList())
96+
print(a.getNormal())
97+
print(c, c.length)
98+
print(c.toIntList(), c.toStrList())
99+
print(c.toIntegerList(), c.toStringList())
100+
print(d, d.length)
91101

92102
if __name__ == "__main__":
93103
String测试.基本测试()

0 commit comments

Comments
 (0)