Skip to content

Comparison for very long lines could be truncated #191

@olivroy

Description

@olivroy
old <- paste0(rep("b", length.out = 10000), collapse = "")
new <- paste0(rep("c", length.out = 10000), collapse = "")
waldo::compare(old, new)

I think the diff provided by waldo is not informative. At this point, it is only useful to know they are different.

Could this be handled?

It causes my computer to lag because testthat prints a lot of output on failed snapshot tests in gt.

See tests/testthat/_snaps/image.md. When this test fails, it is not useful to show the full diff before displaying the offer for snapshot_review(), snapshot_accept()

A change in waldo's print method would be welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions