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)
718
718
RUN (NAME symbolics_11 LABELS cpython_sym c_sym llvm_sym NOFAST )
719
719
RUN (NAME symbolics_12 LABELS cpython_sym c_sym llvm_sym NOFAST )
720
720
RUN (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 )
722
722
RUN (NAME test_gruntz LABELS cpython_sym c_sym llvm_sym NOFAST )
723
723
RUN (NAME symbolics_15 LABELS c_sym llvm_sym NOFAST )
724
+ RUN (NAME symbolics_16 LABELS cpython_sym c_sym llvm_sym NOFAST )
724
725
725
726
RUN (NAME sizeof_01 LABELS llvm c
726
727
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:
56
56
def test_mrv ():
57
57
# ans : list[S]
58
58
# temp : list[S]
59
- ans : list [CPtr ] = []
60
- temp : list [CPtr ] = []
59
+ ans : list [CPtr ]
60
+ temp : list [CPtr ]
61
61
62
62
# mmrv(ans)
63
63
# 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