Skip to content

Commit f6ef0de

Browse files
committed
add test
1 parent e1aa6f6 commit f6ef0de

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/testthat/test-errors.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
test_that("case-sensitive variable name clashes", {
2+
expect_error(regexp = "case-insensitive.+`j`.+`J`", {
3+
quick(function(j) {
4+
declare(type(j = integer(1)))
5+
J <- double(length = j)
6+
J
7+
})
8+
})
9+
})

0 commit comments

Comments
 (0)