-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
fix test #688
fix test #688
Conversation
Code Coverage Summary
Results for commit: 82fa47e Minimum allowed coverage is ♻️ This comment has been updated with latest results |
tests/testthat/test-get_rcode.R
Outdated
strsplit(r_code_from_chunks, "\n")[[1]][c(1:5, 7:15)], | ||
strsplit(r_code_from_header, "\n")[[1]][c(1:5, 7:15)] |
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.
On my system should be up to 13 not 15
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.
does it fail?
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.
oh or some times 14
tests/testthat/test-get_rcode.R
Outdated
strsplit(r_code_from_chunks, "\n")[[1]][c(1:5, 7:17)], | ||
strsplit(r_code_from_header, "\n")[[1]][c(1:5, 7:17)] |
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.
on my system should be up to 15 not 17
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.
> length(strsplit(r_code_from_chunks, "\n")[[1]])
[1] 15
> length(strsplit(r_code_from_header, "\n")[[1]])
[1] 15
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.
updated the tests to use length
so that it is consistent on any platform.
fixes #687
Same approach as https://github.com/insightsengineering/teal/pull/684/files