-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* audit `expect_error()` for `backend-.R` * audit `expect_error()` for `backend-access.R` * audit `expect_error()` for `backend-mssql.R` * audit `expect_error()` for `backend-oracle.R` * audit `expect_error()` for `backend-postgres.R` * audit `expect_error()` for `backend-redshift.R` * audit `expect_error()` for `backend-spark-sql.R` also, subclass widely-used error.
- Loading branch information
1 parent
ad8a9d9
commit d0994d1
Showing
19 changed files
with
364 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# custom clock functions translated correctly | ||
|
||
Code | ||
test_translate_sql(date_count_between(date_column_1, date_column_2, "year")) | ||
Condition | ||
Error in `date_count_between()`: | ||
! `precision` must be "day" on SQL backends. | ||
|
||
--- | ||
|
||
Code | ||
test_translate_sql(date_count_between(date_column_1, date_column_2, "day", n = 5)) | ||
Condition | ||
Error in `date_count_between()`: | ||
! `n` must be "1" on SQL backends. | ||
|
||
# difftime is translated correctly | ||
|
||
Code | ||
test_translate_sql(difftime(start_date, end_date, units = "auto")) | ||
Condition | ||
Error in `difftime()`: | ||
! The only supported value for `units` on SQL backends is "days" | ||
|
||
--- | ||
|
||
Code | ||
test_translate_sql(difftime(start_date, end_date, tz = "UTC", units = "days")) | ||
Condition | ||
Error in `difftime()`: | ||
! The `tz` argument is not supported for SQL backends. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.