0

Suppose you have a function func:

def func(a, b = True):
   if b:
     return 1
   else
     return 0

How do you fix the mutant when the code changes to:

def func(a, b = False):
   if b:
     return 1
   else
     return 0

Do you just write a test case for this?

stackguy1723
  • 165
  • 1
  • 2
  • 12

0 Answers0