mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Update abbreviation.py (#1887)
This commit is contained in:
parent
0feed0bfb8
commit
1c9d4a3929
|
@ -12,7 +12,7 @@ daBcd -> capitalize a and c(dABCd) -> remove d (ABC)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def abbr(a, b):
|
def abbr(a: str, b: str) -> bool:
|
||||||
"""
|
"""
|
||||||
>>> abbr("daBcd", "ABC")
|
>>> abbr("daBcd", "ABC")
|
||||||
True
|
True
|
||||||
|
@ -34,7 +34,6 @@ def abbr(a, b):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# print(abbr("daBcd", "ABC")) # expect True
|
|
||||||
import doctest
|
import doctest
|
||||||
|
|
||||||
doctest.testmod()
|
doctest.testmod()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user