Skip to content

Conversation

@lm3388
Copy link
Collaborator

@lm3388 lm3388 commented Aug 26, 2025

Tested the function with expected results with or without 'n', 'prop' in the display parameter

@lm3388 lm3388 requested a review from wangben718 August 26, 2025 20:18
# expect_named(ae_frm, c("n", "prop", "total"))
expect_named(ae_frm)
expect_true("diff" %in% names(ae_frm))
expect_false("total" %in% names(ae_frm))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @lm3388 , why is it expecting False for "total"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is correct that the 'ae_frm' list does not have "total" element. The "total" actually exists inside the "display" element of 'ae_frm', which I think is by design. The test code has been updated in accordance with this set. Thank you!

@wangben718 wangben718 self-requested a review September 3, 2025 18:41
@wangben718 wangben718 merged commit d8319e8 into main Sep 3, 2025
7 checks passed
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.

3 participants