def test_find_loop_outsider_subtract_and_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, "LoopOutsiderSubtractAndInWhile.java")), [5], "Could not find loop outsider with subtract AND in while loop", )
def test_find_loop_outsider_multiply_and_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, "LoopOutsiderMultiplyAndInWhile.java")), [5], "Could not find loop outsider with multiply AND in while loop", )
def test_find_loop_outsider_assignment_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, "LoopOutsiderAssignmentInWhile.java")), [5], "Could not find loop outsider assignment in while loop", )
def test_find_loop_outsider_bitwise_and_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, "LoopOutsiderBitwiseAndInWhile.java")), [5], "Could not find loop outsider with bitwise AND in while loop", )
def test_find_loop_outsider_right_shift_and_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, "LoopOutsiderRightShiftAndInWhile.java")), [5], "Could not find loop outsider with right shift AND in while loop", )
def test_find_loop_outsider_postfix_decrement_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, 'LoopOutsiderPostfixDecrementInWhile.java')), [5], 'Could not find loop outsider with postfix decrement in while loop' )
def test_find_loop_outsider_bitwise_exclusive_or_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, 'LoopOutsiderBitwiseExclusiveOrInWhile.java')), [5], 'Could not find loop outsider with bitwise exclusive OR in while loop' )
def test_find_loop_outsider_prefix_decrement_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, "LoopOutsiderPrefixDecrementInWhile.java")), [5], "Could not find loop outsider with prefix decrement in while loop", )
def test_find_loop_outsider_bitwise_inclusive_or_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, "LoopOutsiderBitwiseInclusiveOrInWhile.java")), [5], "Could not find loop outsider with bitwise inclusive OR in while loop", )
def test_find_loop_outsider_divide_and_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, 'LoopOutsiderDivideAndInWhile.java')), [5], 'Could not find loop outsider with divide AND in while loop')
def test_find_loop_outsider_left_shift_and_in_while(self): self.assertEqual( LoopOutsider().value( Path(self.dir_path, 'LoopOutsiderLeftShiftAndInWhile.java')), [5], 'Could not find loop outsider with left shift AND in while loop')