keaven / gsDesign

Group sequential design for clinical trials
https://keaven.github.io/gsDesign/
GNU General Public License v3.0
51 stars 14 forks source link

Independent testing of `toInteger()` #135

Open LittleBeannie opened 8 months ago

LittleBeannie commented 8 months ago

Yi, please write your test plan here.

zuoyi93 commented 8 months ago

Input data type check

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

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

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

Output check

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

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