From 7228008ef3b434c2708c7f4e28bd0b11776da5a8 Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Sun, 10 Dec 2017 18:28:07 -0800 Subject: [PATCH] update --- examples/mergesort.py | 2 +- src/mutants.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(