tests/testthat/test-errors.R

test_that("case-sensitive variable name clashes", {
  expect_error(regexp = "case-insensitive.+`j`.+`J`", {
    quick(function(j) {
      declare(type(j = integer(1)))
      J <- double(length = j)
      J
    })
  })
})

Try the quickr package in your browser

Any scripts or data that you put into this service are public.

quickr documentation built on Aug. 26, 2025, 1:07 a.m.