-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
52 deletions.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,24 +1,18 @@ | ||
function plotting_test() | ||
# Add all individual plotting test functions | ||
plot_analysis_flow_parameters_test() | ||
end | ||
|
||
function plot_analysis_flow_parameters_test() | ||
# Test for valid input | ||
tspan = (2000.0, 2015.0) | ||
tspan = (2000.0, 2005.0) | ||
A_values = [8.5e-20] | ||
n_values = [3.0] | ||
rgi_ids = ["RGI60-11.01450"] | ||
|
||
|
||
# Test for error with too many rows/cols | ||
A_values_large = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] | ||
n_values_large = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] | ||
@test_throws ErrorException plot_analysis_flow_parameters(tspan, A_values_large, n_values, rgi_ids) | ||
@test_throws ErrorException plot_analysis_flow_parameters(tspan, A_values, n_values_large, rgi_ids) | ||
try | ||
plot_analysis_flow_parameters(tspan, A_values, n_values, rgi_ids) | ||
@test true # Test passes if no error is thrown | ||
catch e | ||
println("Error occurred: ", e) | ||
@test false # Test fails if any error is caught | ||
|
||
end | ||
|
||
# Test for error with too many rgi_ids | ||
rgi_ids_large = ["RGI60-11.01450", "RGI60-11.03638"] | ||
@test_throws ErrorException plot_analysis_flow_parameters(tspan, A_values, n_values, rgi_ids_large) | ||
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