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 59fb310 commit bb6347fCopy full SHA for bb6347f
src/policy/concrete.rs
@@ -1130,6 +1130,14 @@ mod compiler_tests {
1130
.collect::<Vec<_>>();
1131
assert_eq!(combinations, expected_comb);
1132
}
1133
+
1134
+ #[test]
1135
+ fn test_tr_pk_only() {
1136
+ let policy: Policy<String> = policy_str!("pk(A)");
1137
+ let desc = policy.compile_tr(None).unwrap();
1138
+ // pk(A) promoted to the internal key, leaving the script tree empty
1139
+ assert_eq!(desc.to_string(), "tr(A)#xyg3grex");
1140
+ }
1141
1142
1143
#[cfg(test)]
0 commit comments