mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
add another test case
This commit is contained in:
parent
275e12d319
commit
9e75dd770e
@ -22,6 +22,13 @@ def octal_to_binary(octal_number: str) -> str:
|
|||||||
>>> oct_to_decimal("90")
|
>>> oct_to_decimal("90")
|
||||||
Traceback (most recent call last):
|
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
|
ValueError: octal value was passed to the function
|
||||||
>>> oct_to_decimal("17")
|
>>> oct_to_decimal("17")
|
||||||
001111
|
001111
|
||||||
|
Loading…
x
Reference in New Issue
Block a user