mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 10:58:02 +00:00
Polish unique chars challenge and solution
Add None input test case. Update constraints.
This commit is contained in:
@@ -4,6 +4,7 @@ from nose.tools import assert_equal
|
||||
class TestUniqueChars(object):
|
||||
|
||||
def test_unique_chars(self, func):
|
||||
assert_equal(func(None), False)
|
||||
assert_equal(func(''), True)
|
||||
assert_equal(func('foo'), False)
|
||||
assert_equal(func('bar'), True)
|
||||
|
||||
Reference in New Issue
Block a user