Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Jan 31, 2021
1 parent 5b70c73 commit 6892c70
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions inst/tinytest/test_global_rostream.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ compileAttributes(pkg_path)

# tests
testRostream <- function() {
captureFun <- function(...) {
err <- capture.output(
out <- capture.output(..., type="output"), type="message")
c(out, err)
}
res <- all(ptrA() == ptrB())
res <- c(res, all(grepl("^ ", captureFun(something()))))
toLeft() # change alignment globally
res <- c(res, all(grepl("^s", captureFun(something()))))
toRight() # restore
res
captureFun <- function(...) {
err <- capture.output(
out <- capture.output(..., type="output"), type="message")
c(out, err)
}
res <- all(ptrA() == ptrB())
res <- c(res, all(grepl("^ ", captureFun(something()))))
toLeft() # change alignment globally
res <- c(res, all(grepl("^s", captureFun(something()))))
toRight() # restore
res
}

# test package
Expand Down

0 comments on commit 6892c70

Please sign in to comment.