Open tingerrr opened 4 months ago
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 in c/d. See https://github.com/tingerrr/typst-test/issues/23#issuecomment-2191498924.
b
c
d
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.
valkyrie
cc: @JamesXx you may be interested in this.
Beautiful, I'm gonna see about updating the tests
Add functions which do structural diffing on their input values, showing only the mismatched portion.
Which would only highlight the value difference in
b
and the key difference inc
/d
. See https://github.com/tingerrr/typst-test/issues/23#issuecomment-2191498924.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.