Skip to content

remove context() calls #696

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

Merged
merged 2 commits into from
Dec 7, 2020
Merged

remove context() calls #696

merged 2 commits into from
Dec 7, 2020

Conversation

AshesITR
Copy link
Collaborator

@AshesITR AshesITR commented Dec 6, 2020

test-exclusions.R is handled in #660.

This fixes all other occurences of context() in tests.
Part of #665

@@ -1,5 +1,3 @@
context("assignment_linter")
options(encoding = "UTF-8")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This turned out not to be necessary.

@@ -1,5 +1,3 @@
context("assignment_spaces")
options(encoding = "UTF-8")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This turned out not to be necessary.

a <- 1
a
}",
trim_some("
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Usage of trim_some() greatly improves readability of these tests.
Their behaviour is unchanged.

@AshesITR AshesITR merged commit 9d13146 into master Dec 7, 2020
@AshesITR AshesITR deleted the tests-remove-context branch December 7, 2020 06:59
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.

2 participants