-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
29 additions
and
3 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@test RFlavor.findinterval(1, [0.5, 1, 2]) == 2 | ||
@test RFlavor.findinterval(1:3, 0:0.5:4) == [3, 5, 7] | ||
@test RFlavor.findinterval([1,4], [2, 3, 3, 5]) == [0, 3] | ||
@test_throws ErrorException RFlavor.findinterval(1, [1, -1, 2]) | ||
@test_throws ErrorException RFlavor.findinterval([0, 1], [1, -1, 2]) |
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,4 @@ | ||
x = rand(10) | ||
@test RFlavor.seq(0, 1, by = 0.1) == RFlavor.seq(0, 1, 0.1) == RFlavor.seq(0, 1, length = 11) | ||
@test RFlavor.seq_len(10) == RFlavor.seq_along(x) | ||
|
1 comment
on commit 3c3187d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the tests, i'll fix this tomorrow
this should just be
columns[j]=col