mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Merge branch 'remove_chars' of https://github.com/eamanu/interactive-coding-challenges into remove_chars
This commit is contained in:
commit
293024b9c5
|
@ -1,20 +0,0 @@
|
||||||
from
|
|
||||||
class TestRemoveChars(object):
|
|
||||||
|
|
||||||
def test_remove_chars(self, string, func):
|
|
||||||
assert_equal(func(string, None), False)
|
|
||||||
assert_equal(func(string, ''), 'Python is great')
|
|
||||||
assert_equal(func(string, 'y'), 'Pthon is great')
|
|
||||||
assert_equal(func(string, 'tP'), 'yhon is grea')
|
|
||||||
print('Success: test_remove_chars')
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
test = TestRemoveChars()
|
|
||||||
remove_chars = RemoveChars()
|
|
||||||
string = 'Python is great'
|
|
||||||
test.test_remove_chars(string, remove_chars.remove_chars)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
Loading…
Reference in New Issue
Block a user