-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expand file tree
/
Copy pathirbuild-math.test
More file actions
64 lines (54 loc) · 855 Bytes
/
irbuild-math.test
File metadata and controls
64 lines (54 loc) · 855 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[case testMathLiteralsAreInlined]
import math
from math import pi, e, tau, inf, nan
def f1() -> float:
return pi
def f2() -> float:
return math.pi
def f3() -> float:
return math.e
def f4() -> float:
return math.e
def f5() -> float:
return math.tau
def f6() -> float:
return math.tau
def f7() -> float:
return math.inf
def f8() -> float:
return math.inf
def f9() -> float:
return math.nan
def f10() -> float:
return math.nan
[out]
def f1():
L0:
return 3.141592653589793
def f2():
L0:
return 3.141592653589793
def f3():
L0:
return 2.718281828459045
def f4():
L0:
return 2.718281828459045
def f5():
L0:
return 6.283185307179586
def f6():
L0:
return 6.283185307179586
def f7():
L0:
return inf
def f8():
L0:
return inf
def f9():
L0:
return nan
def f10():
L0:
return nan