Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
edward-burn committed Apr 10, 2024
1 parent 43f9fb5 commit a8d36a6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/testthat/test-backend-.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,14 @@ test_that("lead and lag translate n to integers", {

test_that("can only translate case sensitive str_like", {
local_con(simulate_dbi())
expect_equal(test_translate_sql(str_like(x, "abc", ignore_case = FALSE)),
sql("`x` LIKE 'abc'"))
expect_equal(test_translate_sql(str_like(x, "ABC", ignore_case = FALSE)),
sql("`x` LIKE 'ABC'"))
expect_equal(
test_translate_sql(str_like(x, "abc", ignore_case = FALSE)),
sql("`x` LIKE 'abc'")
)
expect_equal(
test_translate_sql(str_like(x, "ABC", ignore_case = FALSE)),
sql("`x` LIKE 'ABC'")
)
expect_snapshot(
test_translate_sql(str_like(x, "abc", ignore_case = TRUE)),
error = TRUE
Expand Down

0 comments on commit a8d36a6

Please sign in to comment.