From 4ac6b3f0f9567e23c45a2e82e3586fcb0ed46deb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:26:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ciphers/rot13.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ciphers/rot13.py b/ciphers/rot13.py index c092ac40a..71eefb319 100644 --- a/ciphers/rot13.py +++ b/ciphers/rot13.py @@ -25,6 +25,7 @@ def dencrypt(s: str) -> str: out.append(c) return "".join(out) + def main() -> None: s0 = input("Enter message: ") @@ -34,7 +35,9 @@ def main() -> None: s2 = dencrypt(s1) print("Decryption:", s2) + if __name__ == "__main__": import doctest + doctest.testmod() main()