Skip to content

Commit 6c83291

Browse files
committed
tests
1 parent 4e12f65 commit 6c83291

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

inst/realtest/strptime-stringx.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,32 +80,32 @@ get_test_times <- function() {
8080
stringi::stri_timezone_set("Etc/GMT-14")
8181
times <- get_test_times()
8282
for (i in seq_along(times))
83-
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=i)
83+
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=deparse(times[[i]]))
8484

8585
stringi::stri_timezone_set("Etc/GMT+12")
8686
times <- get_test_times()
8787
for (i in seq_along(times))
88-
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=i)
88+
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=deparse(times[[i]]))
8989

9090
stringi::stri_timezone_set("UTC")
9191
times <- get_test_times()
9292
for (i in seq_along(times))
93-
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=i)
93+
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=deparse(times[[i]]))
9494

9595
stringi::stri_timezone_set("Australia/Melbourne")
9696
times <- get_test_times()
9797
for (i in seq_along(times))
98-
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=i)
98+
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=deparse(times[[i]]))
9999

100100
stringi::stri_timezone_set("Europe/Warsaw")
101101
times <- get_test_times()
102102
for (i in seq_along(times))
103-
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=i)
103+
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=deparse(times[[i]]))
104104

105105
stringi::stri_timezone_set("America/Montreal")
106106
times <- get_test_times()
107107
for (i in seq_along(times))
108-
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=i)
108+
E(strftime(times[[i]], "%Y-%m-%d"), "1970-01-01", bad="1970-01-02", bad="1969-12-31", .comment=deparse(times[[i]]))
109109

110110

111111
stringi::stri_timezone_set(oldtz)

0 commit comments

Comments
 (0)