waldo icon indicating copy to clipboard operation
waldo copied to clipboard

Comparison for very long lines could be truncated

Open olivroy opened this issue 3 months ago • 1 comments

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!

olivroy avatar Apr 24 '24 16:04 olivroy