File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -718,9 +718,10 @@ RUN(NAME symbolics_10 LABELS cpython_sym c_sym llvm_sym NOFAST)
718718RUN(NAME symbolics_11 LABELS cpython_sym c_sym llvm_sym NOFAST)
719719RUN(NAME symbolics_12 LABELS cpython_sym c_sym llvm_sym NOFAST)
720720RUN(NAME symbolics_13 LABELS cpython_sym c_sym llvm_sym NOFAST)
721- RUN(NAME symbolics_14 LABELS cpython_sym llvm_sym NOFAST)
721+ RUN(NAME symbolics_14 LABELS cpython_sym c_sym llvm_sym NOFAST)
722722RUN(NAME test_gruntz LABELS cpython_sym c_sym llvm_sym NOFAST)
723723RUN(NAME symbolics_15 LABELS c_sym llvm_sym NOFAST)
724+ RUN(NAME symbolics_16 LABELS cpython_sym c_sym llvm_sym NOFAST)
724725
725726RUN(NAME sizeof_01 LABELS llvm c
726727 EXTRAFILES sizeof_01b.c)
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ def mmrv(r: Out[list[CPtr]]) -> None:
5656def test_mrv ():
5757 # ans : list[S]
5858 # temp : list[S]
59- ans : list [CPtr ] = []
60- temp : list [CPtr ] = []
59+ ans : list [CPtr ]
60+ temp : list [CPtr ]
6161
6262 # mmrv(ans)
6363 # temp = ans
Original file line number Diff line number Diff line change 1+ from lpython import S
2+ from sympy import Symbol , pi , sin
3+
4+ def mmrv () -> list [S ]:
5+ x : S = Symbol ('x' )
6+ l1 : list [S ] = [pi , sin (x )]
7+ return l1
8+
9+ def test_mrv1 ():
10+ ans : list [S ] = mmrv ()
11+ element_1 : S = ans [0 ]
12+ element_2 : S = ans [1 ]
13+ assert element_1 == pi
14+ assert element_2 == sin (Symbol ('x' ))
15+ print (element_1 , element_2 )
16+
17+
18+ test_mrv1 ()
You can’t perform that action at this time.
0 commit comments