mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08: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")
|
||||
True
|
||||
@ -34,7 +34,6 @@ def abbr(a, b):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# print(abbr("daBcd", "ABC")) # expect True
|
||||
import doctest
|
||||
|
||||
doctest.testmod()
|
||||
|
Loading…
Reference in New Issue
Block a user