-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from awesome-spectral-indices/fm/mt
Even more tests
- Loading branch information
Showing
8 changed files
with
222 additions
and
24 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 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
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,13 @@ | ||
using Test | ||
using SpectralIndices | ||
using DataFrames | ||
|
||
@testset "load_dataset: Valid Dataset Name Test" begin | ||
df = load_dataset("spectral", DataFrame) | ||
@test df isa DataFrame | ||
@test !isempty(df) | ||
end | ||
|
||
@testset "load_dataset: Invalid Dataset Name Test" begin | ||
@test_throws ErrorException load_dataset("invalidDatasetName", DataFrame) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Test | ||
using SpectralIndices | ||
using YAXArrays | ||
|
||
@testset "load_dataset: Valid Dataset Name Test" begin | ||
df = load_dataset("sentinel", YAXArray) | ||
@test df isa YAXArray | ||
@test !isempty(df) | ||
end | ||
|
||
@testset "load_dataset: Invalid Dataset Name Test" begin | ||
@test_throws ErrorException load_dataset("invalidDatasetName", YAXArray) | ||
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
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