aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/test_cli.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-02-28 19:25:31 -0500
committerJack Lloyd <[email protected]>2019-02-28 19:25:31 -0500
commit731f26e10a71d9749c61c71a2d997698bb55ac37 (patch)
treec8ce8f21b0f1c23df73ada12125752a9c17461d4 /src/scripts/test_cli.py
parenta9d2cceb52ea93291f37c2a8da4a91bb13a4fbf6 (diff)
Split CLI utils.cpp into more parts
Add base58 encoding/decoding CLI Use decrypt_or_random in pk_decrypt
Diffstat (limited to 'src/scripts/test_cli.py')
-rwxr-xr-xsrc/scripts/test_cli.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/scripts/test_cli.py b/src/scripts/test_cli.py
index f63b9dad9..d09ecf611 100755
--- a/src/scripts/test_cli.py
+++ b/src/scripts/test_cli.py
@@ -150,6 +150,13 @@ def cli_base64_tests():
test_cli("base64_enc", "-", "YmVlcyE=", "bees!")
test_cli("base64_dec", "-", "bees!", "YmVlcyE=")
+def cli_base58_tests():
+ test_cli("base58_enc", "-", "C6sRAr4", "bees!")
+ test_cli("base58_dec", "-", "bees!", "C6sRAr4")
+
+ test_cli("base58_enc", ["--check", "-"], "Cjv15cdjaBc", "F00F")
+ test_cli("base58_dec", ["--check", "-"], "F00F", "Cjv15cdjaBc")
+
def cli_hex_tests():
test_cli("hex_enc", "-", "6265657321", "bees!")
test_cli("hex_dec", "-", "bees!", "6265657321")
@@ -750,6 +757,7 @@ def main(args=None):
test_fns = [
cli_asn1_tests,
cli_asn1_tests,
+ cli_base58_tests,
cli_base64_tests,
cli_bcrypt_tests,
cli_cc_enc_tests,