tests/testthat/test-setRadarScale.R

context("Radar Scale")

test_that("setRadarscale returns correct structure", { 
  
  tStart <- 2
  tMax <- 15
  tStep <- 5
  
  scale <- setRadarScale(tMax, tStep, tStart)
  
  expect_identical(scale$ticks$min, tStart)
  expect_identical(scale$ticks$max, tMax)
  expect_identical(scale$ticks$stepSize, tStep)
})

Try the radarchart package in your browser

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

radarchart documentation built on May 1, 2019, 10:52 p.m.