Skip to content

Conversation

@DMuriuki
Copy link
Collaborator

@DMuriuki DMuriuki commented Jul 9, 2024

Adding test file for the ahr_blinded() function.

@nanxstats
Copy link
Collaborator

Focus on tests/testthat/test-independent-ahr_blinded.R

@nanxstats nanxstats changed the title Ahr blinded test Add tests for ahr_blinded() Aug 2, 2024
Copy link
Collaborator

@nanxstats nanxstats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @DMuriuki I rebased your PR so the merge conflicts are now resolved. Please take a look at this failing test and make necessary updates:

  ── Failure ('test-independent-ahr_blinded.R:17:3'): Piecewise model hr and intervals must be aligned ──
  `ahr_blinded(hr = c(1, 3), intervals = c(3, 4))` did not throw an error.

You can use

git clone -b ahr-blinded-test https://github.com/Merck/gsDesign2.git

to clone the latest version of this branch to local, install, fix the test, and push.

Copy link
Collaborator

@nanxstats nanxstats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LittleBeannie This PR is ready for review. 90% code coverage for ahr_blinded().

@nanxstats nanxstats dismissed their stale review August 20, 2024 16:40

Issue fixed

Copy link
Collaborator

@LittleBeannie LittleBeannie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @DMuriuki and @nanxstats for the testing! Following, please find my comments.

@nanxstats
Copy link
Collaborator

@LittleBeannie Great, I've just removed the non-informative and unrealistic test cases.

Copy link
Collaborator

@LittleBeannie LittleBeannie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, @DMuriuki and @nanxstats !

@LittleBeannie LittleBeannie merged commit cb774cc into main Aug 29, 2024
@LittleBeannie LittleBeannie deleted the ahr-blinded-test branch August 29, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants