From 9e75dd770e527d9ed72a7c5677556199831016aa Mon Sep 17 00:00:00 2001 From: BamaCharanChhandogi Date: Fri, 18 Aug 2023 12:47:09 +0530 Subject: [PATCH] add another test case --- conversions/octal_to_binary.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conversions/octal_to_binary.py b/conversions/octal_to_binary.py index b441e85d0..c00c87ffc 100644 --- a/conversions/octal_to_binary.py +++ b/conversions/octal_to_binary.py @@ -22,6 +22,13 @@ def octal_to_binary(octal_number: str) -> str: >>> oct_to_decimal("90") Traceback (most recent call last): ... + ValueError: Special Character was passed to the function + >>> oct_to_decimal("#$") + Traceback (most recent call last): + ... + ValueError: Empty String was passed to the function + >>> oct_to_decimal("") + ... ValueError: octal value was passed to the function >>> oct_to_decimal("17") 001111