File: test_convertMatrixType.R

package info (click to toggle)
r-cran-bbmisc 1.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,256 kB
  • sloc: ansic: 176; sh: 9; makefile: 5
file content (7 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
context("convertMatrixType")

test_that("convertMatrixType", {
  a1 = matrix(1:4, 2L, 2L)
  a2 = matrix(as.character(1:4), 2L, 2L)
  expect_equal(convertMatrixType(a1, "character"), a2)
})