Skip to content

Commit

Permalink
mask! test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBillson committed Oct 6, 2023
1 parent 9eeba47 commit e9a31ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ end
@test isequal(mask!(deepcopy(a), with=b, missingval=Inf), [1.0 Inf; 1.0 Inf]) # Test missingval = Inf
@test isequal(mask(deepcopy(c), with=d, missingval=-1.0), [1 -1; 1 -1])
@test_throws MethodError mask!(deepcopy(a), with=b, missingval=missing)
@test_throws MethodError mask!(deepcopy(c), with=d, missingval=nothing)
@test_throws ArgumentError mask!(deepcopy(c), with=d, missingval=nothing)
@test_throws InexactError mask!(deepcopy(c), with=d, missingval=NaN)
@test_throws InexactError mask!(deepcopy(c), with=d, missingval=3.14)
@test_throws InexactError mask!(deepcopy(c), with=d, missingval=Inf)
Expand Down

0 comments on commit e9a31ba

Please sign in to comment.