Skip to content

Commit 8a6ac08

Browse files
Adjust unit test for Travis
1 parent 4038fee commit 8a6ac08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inst/unitTests/runit.sugar.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,9 +1633,13 @@ if (.runThisTest) {
16331633
"eye - complex"
16341634
)
16351635

1636+
## diag(TRUE, 3, 3) was registering as
1637+
## a numeric matrix on Travis for some reason
1638+
mat <- matrix(FALSE, 3, 3)
1639+
diag(mat) <- TRUE
16361640
checkEquals(
16371641
lgl_eye(3),
1638-
diag(TRUE, 3, 3),
1642+
mat,
16391643
"eye - logical"
16401644
)
16411645
}

0 commit comments

Comments
 (0)