-
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.
start adding some tests for comparison operators
- Loading branch information
1 parent
5d55f02
commit 8c06255
Showing
2 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@testset verbose = true "Comparison operators" begin | ||
@testset "Test ==" begin | ||
DACE.init(10, 4) | ||
|
||
x = 1 + DA(1, 1.0) | ||
@test 1 == x | ||
|
||
y = DA(1) | ||
@test 1 == y | ||
|
||
@test x == y | ||
end | ||
|
||
@testset "Test >=" begin | ||
DACE.init(10, 4) | ||
|
||
x = 1 + DA(1, 1) | ||
y = DA(2) | ||
@test y >= x | ||
@test y >= 1 | ||
@test y >= 2 | ||
|
||
end | ||
|
||
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