Skip to content

Commit

Permalink
update reference value for test_scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Apr 17, 2023
1 parent d2d704f commit 690ba22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_scalar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ for (T,data) in ((Float32,123.f0),
filename = tempname()
NCDataset(filename,"c") do ds
v = defVar(ds,"scalar",T,())
v[:] = data
v[1] = data
end

NCDataset(filename,"r") do ds
v2 = ds["scalar"][:]
v2 = ds["scalar"][1]
@test typeof(v2) == T
@test v2 == data

Expand Down

0 comments on commit 690ba22

Please sign in to comment.