tests/testthat/test-read_sym_table.R

sym.table <- read.sym.table("files/tsym1.csv", header = TRUE, sep = ";", dec = ".", row.names = 1)

context("Lectura de una tabla simbolica")
test_that("multiplication works", {
  expect_equal(nrow(sym.table), 7)
  expect_is(sym.table, "data.frame")
  expect_true(is.numeric(sym.table$F1))
  expect_true(is.sym.interval(sym.table$F2))
  expect_true(is.sym.modal(sym.table$F3))
  expect_true(is.numeric(sym.table$F4))
  expect_true(is.sym.set(sym.table$F5))
  expect_true(is.sym.interval(sym.table$F6))
  expect_true(is.sym.interval(sym.table$F7))
})

Try the RSDA package in your browser

Any scripts or data that you put into this service are public.

RSDA documentation built on Nov. 10, 2023, 5:06 p.m.