Skip to content

Commit a3d7b04

Browse files
committed
Test some numbers for 3d_examples test
1 parent 061733d commit a3d7b04

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/3d_examples.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,16 @@ using Test
1717
inputparams = mergeInputParams(inputparams_geometry, inputparams)
1818

1919
output = run_battery(inputparams);
20-
20+
Cc = map(x -> x[:Control][:Current][1], output.states)
21+
Phi = map(x -> x[:Control][:Phi][1], output.states)
22+
@test length(output.states) == 77
23+
@test Cc[1] 0.00058 atol = 1e-2
24+
for i in 3:length(Cc)
25+
@test Cc[i] 0.008165 atol = 1e-2
26+
end
27+
@test Phi[1] 4.175 atol = 1e-2
28+
@test Phi[end] 2.76 atol = 1e-2
29+
@test Phi[30] 3.67 atol = 1e-2
2130
true
2231

2332
end

0 commit comments

Comments
 (0)