Fixed bugs on old functions
This commit is contained in:
parent
168f58899e
commit
f8f65f176c
5 changed files with 28 additions and 3 deletions
|
|
@ -56,4 +56,8 @@ test_that("times works as expected", {
|
|||
object = times(matrix(c(10, -5, 3, 9), 2), matrix(1:4, 2)),
|
||||
expected = matrix(c(10, -10, 9, 36), 2)
|
||||
)
|
||||
expect_equal(
|
||||
object = times(matrix(c(-1.6, 5), 1), c(8, 1)),
|
||||
expected = matrix(c(-12.8, -1.6, 40, 5), 2)
|
||||
)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue