commit a25171d98558a1f674f705693935f7d75927ca33
parent d35841da67bc5db2a7949480e9b2ff9cd7d613ae
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:
4 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/Granular.jl b/src/Granular.jl
@@ -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
diff --git a/src/atmosphere.jl b/src/atmosphere.jl
@@ -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()
diff --git a/src/grain.jl b/src/grain.jl
@@ -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
diff --git a/src/ocean.jl b/src/ocean.jl
@@ -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()