From 84623722ef3a1ff6fc302517adc554ba6cb023a7 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Tue, 14 Feb 2023 09:30:31 +0100 Subject: [PATCH] qa: Tapscript-Miniscript unit tests Adapt the test data and the parsing context to support x-only keys. Adapt the Test() helper to test existing cases under both Tapscript and P2WSH context, asserting what needs to be valid or not in each. Finally, add more cases that exercise the logic that was added in the previous commits (multi_a, different resource checks and keys serialization under Tapscript, different properties for 'd:' fragment, ..). --- src/test/miniscript_tests.cpp | 381 ++++++++++++++++++++++------------ 1 file changed, 252 insertions(+), 129 deletions(-) diff --git a/src/test/miniscript_tests.cpp b/src/test/miniscript_tests.cpp index 7f90cbc3dd..6650098b7a 100644 --- a/src/test/miniscript_tests.cpp +++ b/src/test/miniscript_tests.cpp @@ -20,6 +20,7 @@ #include