timport testing framework in every source file that requires it - 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 a25171d98558a1f674f705693935f7d75927ca33 (DIR) parent d35841da67bc5db2a7949480e9b2ff9cd7d613ae (HTM) Author: Anders Damsgaard <andersd@riseup.net> Date: Thu, 9 Nov 2017 10:24:01 -0600 import testing framework in every source file that requires it Diffstat: M src/Granular.jl | 5 ----- M src/atmosphere.jl | 6 ++++++ M src/grain.jl | 6 ++++++ M src/ocean.jl | 6 ++++++ 4 files changed, 18 insertions(+), 5 deletions(-) --- (DIR) diff --git a/src/Granular.jl b/src/Granular.jl t@@ -1,9 +1,4 @@ #!/usr/bin/env julia -if VERSION < v"0.7.0-DEV.2004" - using Base.Test -else - using Test -end """ # Granular.jl (DIR) diff --git a/src/atmosphere.jl b/src/atmosphere.jl t@@ -1,3 +1,9 @@ +if VERSION < v"0.7.0-DEV.2004" + using Base.Test +else + using Test +end + export createEmptyAtmosphere "Returns empty ocean type for initialization purposes." function createEmptyAtmosphere() (DIR) diff --git a/src/grain.jl b/src/grain.jl t@@ -1,5 +1,11 @@ ## Manage grains in the model using Compat +if VERSION < v"0.7.0-DEV.2004" + using Base.Test +else + using Test +end + hasPyPlot = false if typeof(Pkg.installed("PyPlot")) == VersionNumber import PyPlot (DIR) diff --git a/src/ocean.jl b/src/ocean.jl t@@ -1,3 +1,9 @@ +if VERSION < v"0.7.0-DEV.2004" + using Base.Test +else + using Test +end + export createEmptyOcean "Returns empty ocean type for initialization purposes." function createEmptyOcean()