Skip to content

Commit ebbe72d

Browse files
committed
add tests for degrees, radians
1 parent 14c37d0 commit ebbe72d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

integration_tests/test_math.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from math import factorial, isqrt, perm, comb
2-
from ltypes import i32
1+
from math import factorial, isqrt, perm, comb, degrees, radians
2+
from ltypes import i32, f64
33

44
def test_factorial_1():
55
i: i32
@@ -24,7 +24,21 @@ def test_isqrt():
2424
print(i)
2525

2626

27+
def test_degrees():
28+
i: f64
29+
i = degrees(32.2)
30+
print(i)
31+
32+
33+
def test_radians():
34+
i: f64
35+
i = degrees(100.1)
36+
print(i)
37+
38+
2739
test_factorial_1()
2840
test_comb()
2941
test_isqrt()
3042
test_perm()
43+
test_degrees()
44+
test_radians()

0 commit comments

Comments
 (0)