From: Scott Gasch Date: Sun, 5 Mar 2023 02:28:00 +0000 (-0800) Subject: Adds a doctest. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=2d55df3ee82450c7210d197bc6ffffcc7d0192b6;p=pyutils.git Adds a doctest. --- diff --git a/src/pyutils/argparse_utils.py b/src/pyutils/argparse_utils.py index 06b9a9c..01c37f5 100644 --- a/src/pyutils/argparse_utils.py +++ b/src/pyutils/argparse_utils.py @@ -493,6 +493,9 @@ def valid_byte_count(txt: str) -> int: >>> valid_byte_count("1234567") 1234567 + >>> valid_byte_count("1M") + 1048576 + >>> valid_byte_count("1.2Gb") 1288490188