-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add corner-cases to tests, fix typo exposed by those tests (doesn't a…
…ffect XPalm in its current state)
- Loading branch information
1 parent
7eb3c95
commit c6895c2
Showing
3 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
""" | ||
A sub-module with corner-cases intended to be used for tests, and a dependency graph generator to be used for some randomly seeded tests. | ||
They may be of interest to modelers, or developers willing to tinker with PlantSimEngine. | ||
""" | ||
module InternalTests | ||
|
||
using PlantSimEngine, MultiScaleTreeGraph, PlantMeteo, Statistics | ||
|
||
outs = Dict( | ||
"E1" => ( :out1,:out), | ||
"E2" => (:out2,),) | ||
|
||
#tupl = (1, 2, 3) | ||
#tuple2 = (2, 4) | ||
#outs = Dict{String, Tuple{Vararg{Symbol}}}("1" .=> tupl, "2" => tuple2) | ||
#=outs_ = Dict{String, Vector{Symbol}}() | ||
for i in keys(outs) | ||
outs_[i] = [outs[i]...] | ||
end=# | ||
#outs_ = Dict{String, Vector{Symbol}}(i => Vector(outs[i]...) for i in keys(outs)) | ||
outs_ = Dict(i => Vector(outs[i]...) for i in keys(outs)) | ||
|
||
|
||
# Processes: | ||
export | ||
|
||
# Models: | ||
export | ||
|
||
|
||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters