Cytel-Inc / CyneRgy

CyneRgy is a package designed to illustrate the synergy of using R with Cytel products for clinical trial simulation.
https://cytel-inc.github.io/CyneRgy/
2 stars 0 forks source link

Unit Testing for Multiple Functions in R Package #177

Closed audrey-wat closed 3 months ago

audrey-wat commented 3 months ago

This pull request introduces unit tests for multiple functions in our R package. The primary goal of these tests is to ensure that each function executes successfully under various input scenarios.

Changes:

Unit tests have been added for the following functions:

AnalyzeUsingBetaBinomial SimulatePatientSurvivalMixtureExponentials AnalyzeUsingEastManualFormula AnalyzeUsingEastManualFormulaNormal AnalyzeUsingHazardRatioLimitsOfCI AnalyzeUsingMeanLimitsOfCI AnalyzeUsingPropTest AnalyzeUsingTTestNormal SimulatePatientOutcomePercentAtZero SimulatePatientOutcomePercentAtZeroBetaDist SimulatePatientSurvivalWeibull Each test is designed to validate the successful execution of the function under different input conditions. The tests do not currently validate the accuracy of each function's output, but they ensure that each function can process the inputs and produce an output without errors.

Testing:

All added tests have been executed locally with successful results. Upon merging, these tests will be integrated into the continuous integration pipeline to ensure the ongoing execution reliability of these functions.

audrey-wat commented 3 months ago

fixes 175 and 176