From 612fbcc0f966c3d7245f8c3552a1e3298e7d42d8 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Fri, 22 Nov 2024 11:38:50 +0530 Subject: [PATCH] test: fix thermal piston test --- test/Thermal/piston.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Thermal/piston.jl b/test/Thermal/piston.jl index 1d3426902..c8b2c2563 100644 --- a/test/Thermal/piston.jl +++ b/test/Thermal/piston.jl @@ -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