14 Commits
Author SHA1 Message Date
Stephen Celis 84b30e1af7 Only print "no difference detected" when diff output is the same (#85)
* Only print "no difference detected" when diff output is the same

* wip

* fix for Xcode 13.4.1
2023-04-13 14:04:03 -07:00
Stephen Celis 21404fead4 Show difference when values are equal if labels differ (#84) 2023-04-12 16:34:29 -07:00
stephencelis 6a90124ac7 Run swift-format 2023-03-22 18:27:33 +00:00
Stephen Celis be44c34910 Support ordered dictionaries/sets (#80)
We currently auto-sort the children of any mirror with a display style
of dictionary or set alphabetically. This is important for consistent
dumps (good for snapshot tests, too), but affects types that don't need
the sorting, like ordered dictionaries and sets.

This PR introduces an `_UnorderedCollection` protocol to control this
behavior, and conforms `Dictionary`, `Set`, and their `NS`-
predecessors, but leaves other types open to dumping and diffing in an
ordered way by default.
2023-03-22 11:08:42 -07:00
Stephen Celis 3860d0beee Abbreviate enums in diffs (#72)
* Abbreviate enums in diffs

We added the ability to abbreviate nested dumps in #71, but this didn't
transfer to diffs.

* wip

* Fix for old Swift runtime
2023-02-03 11:08:14 -08:00
Stephen Celis 253e3d9130 Differentiate equal dumps of different types (#49)
Fixes #48.
2022-05-03 11:11:45 -04:00
Brentley Jones e7c6d6444d Show label for visited items (#43) 2022-03-02 09:18:32 -05:00
Stephen Celis 1c384565cf Revert removal of platform requirements (#42)
* Partially revert "f8c70309e75569964669af8a068fb0d0312c323f"

* Revert "Remove platform requirements (#37)"

This reverts commit fa2eb2572b.
2022-02-18 18:02:48 -05:00
Stephen Celis fa2eb2572b Remove platform requirements (#37)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
2022-02-14 12:17:32 -05:00
stephencelis 25292d6c6e Run swift-format 2021-10-25 15:01:32 +00:00
Stephen Celis c393756672 Print object identity in diff (#29)
* Print object identity in diff

* Fix for other structures

* Simplify
2021-10-25 10:40:25 -04:00
stephencelis d71cd3c367 Run swift-format 2021-08-25 18:46:27 +00:00
Stephen Celis 4a04330a89 Improve CI coverage 2021-08-23 11:26:25 -04:00
Stephen CelisandBrandon Williams d6c3b5fcc1 ➕➖
Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2021-08-22 22:30:09 -04:00