tests/testthat/test-skewness.R

# 
# 
# 
context("Test that skewness computation is correct") 

test_that("Skewness computation is OK", { 
  X <- runif(1000) 
  expect_equal(moments::skewness(X), 
               raw_skewness(X))
})

Try the spatialwarnings package in your browser

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

spatialwarnings documentation built on May 2, 2019, 5:16 p.m.