Skip to content

Commit

Permalink
Merge pull request #344 from AayushSabharwal/as/fix-tests
Browse files Browse the repository at this point in the history
test: fix thermal piston test
  • Loading branch information
ChrisRackauckas authored Nov 25, 2024
2 parents 1827d63 + 612fbcc commit e41dcfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Thermal/piston.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ using ModelingToolkitStandardLibrary.Blocks
# The initial value doesn't add up to absolute zero, while the rest do. To avoid
# tolerance on the latter, the test is split in two parts.
@test sol[piston.gas.Q_flow][1] + sol[piston.coolant.Q_flow][1]0 atol=1e-6
@test sol[piston.gas.Q_flow][2:end] + sol[piston.coolant.Q_flow][2:end] ==
zeros(length(sol) - 1)
@test sol[piston.gas.Q_flow][2:end] + sol[piston.coolant.Q_flow][2:end]
zeros(length(sol) - 1) atol = 1e-6
end

0 comments on commit e41dcfc

Please sign in to comment.