We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reprex()
When I ran the code below within reprex::reprex() I got the expected error below. When I ran it manually, I got no error.
reprex::reprex()
testthat::expect_equal( as.POSIXct("2024-08-02 20:47:03.123", tz = "UTC"), as.POSIXct("2024-08-02 20:47:03", tz = "UTC") ) #> Error: as.POSIXct("2024-08-02 20:47:03.123", tz = "UTC") not equal to as.POSIXct("2024-08-02 20:47:03", tz = "UTC"). #> 1/1 mismatches #> [1] 2024-08-02 20:47:03.122 - 2024-08-02 20:47:03 == 0.123 secs dput(as.POSIXct("2024-08-02 20:47:03.123", tz = "UTC")) #> structure(1722631623.123, class = c("POSIXct", "POSIXt"), tzone = "UTC") dput(as.POSIXct("2024-08-02 20:47:03", tz = "UTC")) #> structure(1722631623, class = c("POSIXct", "POSIXt"), tzone = "UTC")
Created on 2024-08-03 with reprex v2.1.1
The text was updated successfully, but these errors were encountered:
Depends on whether you're using 2e or 3e.
Sorry, something went wrong.
No branches or pull requests
When I ran the code below within
reprex::reprex()
I got the expected error below. When I ran it manually, I got no error.Created on 2024-08-03 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: