tests/testthat/test-gsim.R

context("Testing  base gsim ")

# Configure this test to fit your need
test_that(
  "gsim",{
    # Test - new dataset
    df <- gsim(target_rows = 100)
    testthat::expect_equal(nrow(df),100)


    # based on mtcars - Expand Dataset
    df <- gsim(data = mtcars , target_rows = 1000)
    testthat::expect_equal(nrow(df),nrow(mtcars))


    # based on mtcars - reduce dataset
    df <- gsim(data = mtcars , target_rows = 7)
    testthat::expect_equal(nrow(df),7)

  }
)
shambhu112/gsim documentation built on Jan. 21, 2021, 6:20 p.m.