Structural diffing of Typst values #25
Labels
A-lib
Area: library crate
A-test-lib
Area: typst test library
C-feature
Category: feature request
P-low
Priority: low
Add functions which do structural diffing on their input values, showing only the mismatched portion.
#assert-strural-eq( (a: 1, b: 2, c: 3), (a: 1, b: 3, d: 3), )
Which would only highlight the value difference in
b
and the key difference inc
/d
. See #23 (comment).In some sense, this is already kind of possible by using the
valkyrie
package and creating schema on the fly from one of the values, but this is biased towards one value.cc: @Jamesxx you may be interested in this.
The text was updated successfully, but these errors were encountered: