timport testing framework in every source file that requires it - Granular.jl -… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a25171d98558a1f674f705693935f7d75927ca33 | |
parent d35841da67bc5db2a7949480e9b2ff9cd7d613ae | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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 | |
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() | |
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 | |
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() |