Added basic colon function
This commit is contained in:
parent
f8f65f176c
commit
1b79529e4b
3 changed files with 33 additions and 0 deletions
|
|
@ -60,4 +60,9 @@ test_that("times works as expected", {
|
|||
object = times(matrix(c(-1.6, 5), 1), c(8, 1)),
|
||||
expected = matrix(c(-12.8, -1.6, 40, 5), 2)
|
||||
)
|
||||
})
|
||||
|
||||
test_that("colon works as expected (hee hee)", {
|
||||
expect_equal(colon(1, 4), 1:4)
|
||||
expect_length(colon(4, 1), 0)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue