kyu_8.dalmatians_101_squash_bugs package

Submodules

kyu_8.dalmatians_101_squash_bugs.solution module

Solution for -> # 101 Dalmatians - squash the bugs, not the dogs!.

Created by Egor Kostan. GitHub: https://github.com/ikostan

kyu_8.dalmatians_101_squash_bugs.solution.how_many_dalmatians(number: int) str[source]

Squash the bugs, not the dogs!.

Parameters:

number – int

Returns:

str

kyu_8.dalmatians_101_squash_bugs.test_how_many_dalmatians module

Test for -> 101 Dalmatians - squash the bugs, not the dogs!.

Created by Egor Kostan. GitHub: https://github.com/ikostan

class kyu_8.dalmatians_101_squash_bugs.test_how_many_dalmatians.HowManyDalmatiansTestCase(methodName='runTest')[source]

Bases: TestCase

Test ‘how_many_dalmatians’ function.

_classSetupFailed = False
_class_cleanups = []
test_how_many_dalmatians = None
test_how_many_dalmatians_0(**kw)

Testing ‘how_many_dalmatians’ function with various test data [with number=26, expected=’More than a handful!’].

Parameters:
  • number

  • expected

Returns:

test_how_many_dalmatians_1(**kw)

Testing ‘how_many_dalmatians’ function with various test data [with number=8, expected=’Hardly any’].

Parameters:
  • number

  • expected

Returns:

test_how_many_dalmatians_2(**kw)

Testing ‘how_many_dalmatians’ function with various test data [with number=14, expected=’More than a handful!’].

Parameters:
  • number

  • expected

Returns:

test_how_many_dalmatians_3(**kw)

Testing ‘how_many_dalmatians’ function with various test data [with number=80, expected=”Woah that’s a lot of dogs!”].

Parameters:
  • number

  • expected

Returns:

test_how_many_dalmatians_4(**kw)

Testing ‘how_many_dalmatians’ function with various test data [with number=100, expected=”Woah that’s a lot of dogs!”].

Parameters:
  • number

  • expected

Returns:

test_how_many_dalmatians_5(**kw)

Testing ‘how_many_dalmatians’ function with various test data [with number=50, expected=’More than a handful!’].

Parameters:
  • number

  • expected

Returns:

test_how_many_dalmatians_6(**kw)

Testing ‘how_many_dalmatians’ function with various test data [with number=10, expected=’Hardly any’].

Parameters:
  • number

  • expected

Returns:

test_how_many_dalmatians_7(**kw)

Testing ‘how_many_dalmatians’ function with various test data [with number=101, expected=’101 DALMATIONS!!!’].

Parameters:
  • number

  • expected

Returns:

Module contents

101 Dalmatians - squash the bugs, not the dogs!.