Browse Source

tooltest2.py: add `privhex2pair` test

The MMGen Project 2 months ago
parent
commit
c2df555f36
1 changed files with 8 additions and 0 deletions
  1. 8 0
      test/tooltest2_d/data.py

+ 8 - 0
test/tooltest2_d/data.py

@@ -454,6 +454,14 @@ tests = {
 				([privhex7], btc_wif2, ['--type=bech32'], 'bech32'),
 			],
 		},
+		'privhex2pair': {
+			'btc_mainnet': [
+				([privhex7], [btc_wif1, btc_addr1], None, 'legacy'),
+				([privhex7], [btc_wif2, btc_addr2], ['--type=compressed'], 'compressed'),
+				([privhex7], [btc_wif2, btc_addr3], ['--type=segwit'], 'segwit'),
+				([privhex7], [btc_wif2, btc_addr4], ['--type=bech32'], 'bech32'),
+			],
+		},
 		'privhex2addr': {
 			'btc_mainnet': [
 				([privhex7], btc_addr1, None, 'legacy'),