tuse isassigned over isdefined for future compatibility - Granular.jl - Julia package for granular dynamics simulation
(HTM) git clone git://src.adamsgaard.dk/Granular.jl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 87c38d3e836aa40f6c0c4e2d0a86b99c3d0f9d28
(DIR) parent c973b53ac617ee3dddc257894ebd2298c9df8f89
(HTM) Author: Anders Damsgaard <andersd@riseup.net>
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(-)
---
(DIR) diff --git a/src/atmosphere.jl b/src/atmosphere.jl
t@@ -233,7 +233,7 @@ function compareAtmospheres(atmosphere1::Atmosphere, atmosphere2::Atmosphere)
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
(DIR) 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