Skip to content

Commit

Permalink
Add small server test
Browse files Browse the repository at this point in the history
To test if `NaN` values are allowed.
  • Loading branch information
vers-w committed Dec 3, 2024
1 parent 410995c commit 43e4382
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/test/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ end
@test request((fn = "get_time_units",)) == Dict("time_units" => "s")
end

@testset "Reading and writing NaN values allowed" begin
msg =
(fn = "get_value", name = "vertical.soil.variables.vwc[1]", dest = fill(0.0, 50063))
@test isnan(mean(request(msg)["value"]))
end

@testset "update functions" begin
@test request((fn = "update_until", time = 86400.0)) == Dict("status" => "OK")
@test request((fn = "get_current_time",)) == Dict("current_time" => 86400)
Expand Down

0 comments on commit 43e4382

Please sign in to comment.