[llvm] [lit] Add JSON diffing support to lit (PR #177513)
Henrik G. Olsson via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 20:04:25 PST 2026
================
@@ -0,0 +1,7 @@
+# Test absence pattern (@!)
+# Test that keys marked with @! should not exist in actual JSON
+# RUN: json-diff %S/patterns-absence-expected.json %S/patterns-absence-actual.json
+
+# Test that presence of key marked with @! causes failure
+# RUN: not json-diff %S/patterns-absence-fail-expected.json %S/patterns-absence-fail-actual.json 2>&1 | FileCheck --check-prefix=FAIL %s
----------------
hnrklssn wrote:
Does `@!` make sense without `--ignore-extra-keys`? Regardless, I think we should test that combination as well.
https://github.com/llvm/llvm-project/pull/177513
More information about the llvm-commits
mailing list