Do better showing differences between x,y in test() failure#7836
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7836 +/- ##
=======================================
Coverage 99.02% 99.02%
=======================================
Files 88 88
Lines 17266 17266
=======================================
Hits 17097 17097
Misses 169 169 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
5b2a826 to
011f20c
Compare
|
No obvious timing issues in HEAD=test-err-show-diff Generated via commit 746918d Download link for the artifact containing the test results: ↓ atime-results.zip
|
6f23983 to
f93fce1
Compare
|
Also not 100% satisfied with the index representation. Maybe something like First 6 of 980 differing elements (1000 total):
index x y
11 11 20
12 12 19
13 13 18
14 14 17
15 15 16
16 16 15
Types: x integer, y integer |
The problem with this one is it requires a bit more of a refactor since the current approach is "show x difference then show y difference" as opposed to "show a holistic comparison of x,y". |
True. Maybe we put that as follow up. The index notation is already much better TY! |
179a522 to
9972feb
Compare
f93fce1 to
746918d
Compare

Closes #7834. NB: merge target is not
mastercurrentlyOutput from
test(1, c(1:10, 11:20, 30:21, 31:1000), c(1:10, 20:11, 30:21, 1000:31))It's a bit visually dense; we might prefer this alternative using a matrix representation:
See also other test cases:
A case that's still not completely satisfactory -- it gives the impression of showing
x[11] == y[11]-- but I'm willing to ignore for now: