keaven / gsDesign

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

Independent testing of `toInteger()` #135

Open LittleBeannie opened 6 months ago

LittleBeannie commented 6 months ago

Yi, please write your test plan here.

zuoyi93 commented 5 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