Skip to content

Commit 9732771

Browse files
committed
Increase test coverage of Julia code generator
1 parent e7b3808 commit 9732771

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/code_gen_test.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ using LinearAlgebra, StaticArrays
1111
# Test julia code generation
1212
for i = 1:length(a)
1313
(graph, crefs) = graph_ps_degopt([3 4 2 -1 2 a[i]])
14-
add_lincomb!(graph,:Q,[2.0],graph.outputs) # Check
15-
add_ldiv!(graph, :R0, :B4, :Q)
14+
add_lincomb!(graph, :Q, [2.0], graph.outputs)# Check
15+
add_ldiv!(graph, :R2, :B4, :Q)
16+
add_lincomb!(graph, :Is, [2., 3., 5.], [:I, :I, :I])
17+
add_lincomb!(graph, :R1, [2., 2.], [:Is, :A])
18+
add_ldiv!(graph, :R0, :R1, :R2)
1619
clear_outputs!(graph)
1720
add_output!(graph, :R0)
1821

0 commit comments

Comments
 (0)