context_start_file("dGBeta1 function errors") test_that("checking class",{ expect_type(dGBeta1(seq(0,1,by=0.01),2,3,1)$pdf,"double") }) Temp<-dGBeta1(seq(0,1,by=0.01),2,3,1) test_that("checking length of output",{ expect_type(Temp,"list") }) test_that("NA values are avoided",{ expect_error(dGBeta1(NA,0.1,3,3), "NA or Infinite or NAN values in the Input") }) test_that("Greater than 1",{ expect_error(dGBeta1(5,8,3,3), "Invalid values in the input") }) test_that("shape parameter b",{ expect_error(dGBeta1(0.1,5,-4,1), "Shape parameters cannot be less than or equal to zero") })