tests/testthat/helper-expect.R

expect_identical_except_bytecode <- function(x, y) {
  x <- readLines(x)
  y <- readLines(y)
  expect_identical(
    x[!grepl("^    ## <bytecode:", x)],
    y[!grepl("^    ## <bytecode:", y)]
  )
}
atusy/felp documentation built on Aug. 12, 2024, 6:44 p.m.