tests/testthat/test_67_Nucleolus.R

boolSkip=F



test_that("Check 67.1 - testing calculation of Nucleolus with game vector A=(2,6,5,15,1,18,14) " ,{
  if(boolSkip){
    skip("Test was skipped")
  }
  v<-c(2,6,5,15,1,18,14)
  expected_x=c(2,7,5)
  
  expect_equal(nucleolus(v),expected_x)
  
})

Try the CoopGame package in your browser

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

CoopGame documentation built on Aug. 24, 2021, 1:07 a.m.