gsDesign
gsDesign copied to clipboard
Independent testing of `toInteger()`
Yi, please write your test plan here.
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
Fixed by #186 (maybe not as comprehensive as above, but the tests work).