tuse isassigned over isdefined for future compatibility - Granular.jl - Julia p… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 87c38d3e836aa40f6c0c4e2d0a86b99c3d0f9d28 | |
parent c973b53ac617ee3dddc257894ebd2298c9df8f89 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 21 Jun 2017 21:56:54 -0400 | |
use isassigned over isdefined for future compatibility | |
Diffstat: | |
M src/atmosphere.jl | 2 +- | |
M src/ocean.jl | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/atmosphere.jl b/src/atmosphere.jl | |
t@@ -233,7 +233,7 @@ function compareAtmospheres(atmosphere1::Atmosphere, atmos… | |
Base.Test.@test atmosphere1.u ≈ atmosphere2.u | |
Base.Test.@test atmosphere1.v ≈ atmosphere2.v | |
- if isdefined(atmosphere1.ice_floe_list, 1) | |
+ if isassigned(atmosphere1.ice_floe_list, 1) | |
Base.Test.@test atmosphere1.ice_floe_list == atmosphere2.ice_floe_list | |
end | |
end | |
diff --git a/src/ocean.jl b/src/ocean.jl | |
t@@ -349,7 +349,7 @@ function compareOceans(ocean1::Ocean, ocean2::Ocean) | |
Base.Test.@test ocean1.h ≈ ocean2.h | |
Base.Test.@test ocean1.e ≈ ocean2.e | |
- if isdefined(ocean1.ice_floe_list, 1) | |
+ if isassigned(ocean1.ice_floe_list, 1) | |
Base.Test.@test ocean1.ice_floe_list == ocean2.ice_floe_list | |
end | |
end |