Skip to content

Ensure verify_output() handles \r correctly #1048

Description

@hadley
library(testthat)

path <- tempfile()  
verify_output(path, cat("\r\n"))
#> Warning: Creating reference output
verify_output(path, cat("\r\n"))
#> Error: Results have changed from known value recorded in '/tmp/RtmpKf8dbf/file5e0b64a0acc5'.
#> 1/3 mismatches
#> x[2]: "\r"
#> y[2]: ""

Created on 2020-06-16 by the reprex package (v0.3.0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorsnapshot 📷

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions