-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add error message for class "difftime" #232
Conversation
✅ All contributors have signed the CLA |
Code Coverage Summary
Diff against main
Results for commit: 40a4723 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
I have read the CLA Document and I hereby sign the CLA |
Unit Tests Summary 1 files 5 suites 10s ⏱️ Results for commit 40a4723. ♻️ This comment has been updated with latest results. |
Unit Test Performance DifferenceAdditional test case details
Results for commit f07d627 ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great fix! we should do the same for {rtables}. It happens from time to time. Just wondering if it would be better to check this before creating the listing (and table). What do you think? I am quite sure that the one in {rtables} should be in build_table because it is the first checks when you see the data.
remember news file ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! thanks @ayogasekaram
we can merge this once insightsengineering/scda.test#164 is green
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same opinion as @Melkiades, I would put the assertion in as_listings
so that it is clear the the error is due to the data, not subsequent modification of the listing. thank you.
yes, assertion in as_listings from the start, printing is too downstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @ayogasekaram can you please update, use assertion, thanks!
I've shifted the check to the as_listing function. I opted to not use the checkmate function because the error message seemed lengthy, but I can replace with this if required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! thanks @ayogasekaram
closes #215
Adding an error message for now for clarity - we can revisit supporting the "difftime" class type based on user requests.