diff --git a/core/integration_test/hws_integration_test.jl b/core/integration_test/hws_integration_test.jl index b575c3723..92ddf7d5a 100644 --- a/core/integration_test/hws_integration_test.jl +++ b/core/integration_test/hws_integration_test.jl @@ -18,6 +18,7 @@ @testset "Results values" begin @test basin.node_id == basin_bench.node_id @test all(q -> abs(q) < 0.01, basin.level - basin_bench.level) + all(q -> (println(q); abs(q) > 0.01), basin.level - basin_bench.level) end timed = @timed Ribasim.run(toml_path) @@ -25,8 +26,9 @@ # current benchmark is 600s benchmark_runtime = 600 performance_diff = - round(abs(timed.time - benchmark_runtime) / benchmark_runtime * 100; digits = 2) + round((timed.time - benchmark_runtime) / benchmark_runtime * 100; digits = 2) if performance_diff < 0.0 + performance_diff = abs(performance_diff) @info "Runtime is $(timed.time) and it is $performance_diff % faster than benchmark" elseif performance_diff > 0.0 && performance_diff < 0.2 @info "Runtime is $(timed.time) and it is $performance_diff % slower than benchmark"