diff --git a/examples/mergesort.py b/examples/mergesort.py index b723588..3a19620 100644 --- a/examples/mergesort.py +++ b/examples/mergesort.py @@ -17,7 +17,7 @@ def merge_sort(items): """ if len(items) > 1: - mid = len(items) / 2 # Determine the midpoint and split + mid = len(items) // 2 # Determine the midpoint and split left = items[0:mid] right = items[mid:] diff --git a/src/mutants.py b/src/mutants.py index 7fdfcd5..177c321 100644 --- a/src/mutants.py +++ b/src/mutants.py @@ -308,7 +308,7 @@ def allm(): unarySign = SwapOpsTemplate({'UNARY_POSITIVE': '+u', 'UNARY_NEGATIVE': '-u'}, "us, %s : swap %s") inplaceMutationRelational = SwapOpsTemplate({'INPLACE_AND': '&&', 'INPLACE_OR': '||'}, "imr, %s : swap %s") inplaceMutationNum = SwapOpsTemplate( - {'INPLACE_FLOOR_DIVIDE': '//=', 'INPLACE_TRUE_DIVIDE': './=.', 'INPLACE_DIVIDE': '/=', 'INPLACE_MULTIPLY': '*=', + {'INPLACE_FLOOR_DIVIDE': '//=', 'INPLACE_TRUE_DIVIDE': './=.', 'INPLACE_TRUE_DIVIDE': '/=', 'INPLACE_MULTIPLY': '*=', 'INPLACE_POWER': '**=', 'INPLACE_MODULO': '%=', 'INPLACE_ADD': '+=', 'INPLACE_SUBTRACT': '-=', 'INPLACE_LSHIFT': '<<=', 'INPLACE_RSHIFT': '>>=', 'INPLACE_XOR': '^='}, "imn, %s : swap %s") jumpMutationStack2 = SwapOpsTemplate(