We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 169e489 commit ea3c523Copy full SHA for ea3c523
src/policy/concrete.rs
@@ -1120,6 +1120,14 @@ mod compiler_tests {
1120
.collect::<Vec<_>>();
1121
assert_eq!(combinations, expected_comb);
1122
}
1123
+
1124
+ #[test]
1125
+ fn test_tr_pk_only() {
1126
+ let policy: Policy<String> = policy_str!("pk(A)");
1127
+ let desc = policy.compile_tr(None).unwrap();
1128
+ // pk(A) promoted to the internal key, leaving the script tree empty
1129
+ assert_eq!(desc.to_string(), "tr(A)#xyg3grex");
1130
+ }
1131
1132
1133
#[cfg(test)]
0 commit comments