gsDesign icon indicating copy to clipboard operation
gsDesign copied to clipboard

Independent testing of `toInteger()`

Open LittleBeannie opened this issue 1 year ago • 1 comments

Yi, please write your test plan here.

LittleBeannie avatar Mar 18 '24 14:03 LittleBeannie

Input data type check

x with the wrong data type while providing reasonable values for other arguments

  • character string
  • numeric number

ratio with the wrong data type while providing reasonable values for other arguments

  • character string
  • negative integer
  • positive fraction number

roundUpFinal with wrong data type while providing reasonable values for other arguments

  • character string
  • numeric value

Output check

  • Survival design

Case 1: 2 interim analyses and 1 final analysis, efficacy only, ratio = 1 Case 2: 2 interim analyses and 1 final analysis, efficacy only, ratio = 2 Case 3: 2 interim analyses and 1 final analysis, efficacy only, ratio = 0 Case 4: 2 interim analyses and 1 final analysis, efficacy only, ratio = 1, roundUpFinal = FALSE Case 5: 3 interim analyses and 1 final analysis, IA1 binding futility, efficacy elsewhere, ratio = 1 Case 6: 3 interim analyses and 1 final analysis, IA1 non-binding futility, efficacy elsewhere, ratio = 1

  • Binomial design

Case 1: 1 interim analysis and 1 final analysis, efficacy only, ratio = 1 Case 2: 2 interim analyses and 1 final analysis, efficacy only, ratio = 2 Case 3: 2 interim analyses and 1 final analysis, efficacy only, ratio = 2, roundUpFinal = FALSE

zuoyi93 avatar Apr 07 '24 09:04 zuoyi93

Fixed by #186 (maybe not as comprehensive as above, but the tests work).

nanxstats avatar Feb 18 '25 02:02 nanxstats