Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MichaelChirico
Copy link
Collaborator

Towards #1358

Most files have one (or at most two) left, so starting to batch them together

Comment on lines +22 to +31
stopifnot_xpath <- glue::glue("
//SYMBOL_FUNCTION_CALL[text() = 'stopifnot']
/parent::expr
/following-sibling::expr[1][AND2 {named_stopifnot_condition}]
")
expect_false_xpath <- "
//SYMBOL_FUNCTION_CALL[text() = 'expect_false']
/parent::expr
/following-sibling::expr[1][OR2]
"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Very nice!

I wish we'd use such descriptive names more often for XPath variables than just the generic xpath, but that's for a later date.

@IndrajeetPatil IndrajeetPatil merged commit f8ee0c0 into main Oct 2, 2022
@IndrajeetPatil IndrajeetPatil deleted the expr branch October 2, 2022 07:40
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