public void testAlignPipeOperandsTrue() { myFixture.configureByFile("align_pipe_operands_false.ex"); temporaryCodeStyleSettings .getCustomSettings(CodeStyleSettings.class) .ALIGN_PIPE_OPERANDS = true; reformatFixture(); myFixture.checkResultByFile("align_pipe_operands_true.ex"); }
public void testAlignTwoOperandsFalse() { myFixture.configureByFile("align_two_operands_true.ex"); temporaryCodeStyleSettings .getCustomSettings(CodeStyleSettings.class) .ALIGN_TWO_OPERANDS = false; reformatFixture(); myFixture.checkResultByFile("align_two_operands_false.ex"); }
public void testWithoutSpaceAroundAssociationOperator() { myFixture.configureByFile("with_space_around_association_operator.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_ASSOCIATION_OPERATOR = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_association_operator.ex"); }
public void testWithSpaceWithinBits() { myFixture.configureByFile("without_space_within_bits.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_WITHIN_BITS = true; reformatFixture(); myFixture.checkResultByFile("with_space_within_bits.ex"); }
public void testWithSpaceAroundOrOperators() { myFixture.configureByFile("without_space_around_or_operators.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_OR_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_or_operators.ex"); }
public void testWithSpaceAroundArrowOperators() { myFixture.configureByFile("without_space_around_arrow_operators.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_ARROW_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_arrow_operators.ex"); }
public void testWithoutSpaceWithinBits() { myFixture.configureByFile("with_space_within_bits.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_WITHIN_BITS = false; reformatFixture(); myFixture.checkResultByFile("without_space_within_bits.ex"); }
public void testWithoutSpaceAroundThreeOperator() { myFixture.configureByFile("with_space_around_three_operator.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_THREE_OPERATOR = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_three_operator.ex"); }
public void testWithSpaceAroundTwoOperator() { myFixture.configureByFile("without_space_around_two_operators.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_TWO_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_two_operators.ex"); }
public void testWithoutSpaceAroundTwoOperator() { myFixture.configureByFile("with_space_around_two_operators.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_TWO_OPERATORS = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_two_operators.ex"); }
public void testUnmatchedCallAlignDoBlockToLine() { myFixture.configureByFile("unmatched_call_align_do_block_to_call.ex"); temporaryCodeStyleSettings .getCustomSettings(CodeStyleSettings.class) .ALIGN_UNMATCHED_CALL_DO_BLOCKS = CodeStyleSettings.UnmatchedCallDoBlockAlignment.LINE.value; reformatFixture(); myFixture.checkResultByFile("unmatched_call_align_do_block_to_line.ex"); }
public void testWithSpaceAroundAndOperators() { myFixture.configureByFile("without_space_around_and_operators.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_AND_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_and_operators.ex"); }
public void testWithoutSpaceAroundArrowOperators() { myFixture.configureByFile("with_space_around_arrow_operators.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_ARROW_OPERATORS = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_arrow_operators.ex"); }
public void testWithSpaceAroundAssociationOperator() { myFixture.configureByFile("without_space_around_association_operator.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_ASSOCIATION_OPERATOR = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_association_operator.ex"); }
public void testWithSpaceAfterCaptureOperator() { myFixture.configureByFile("without_space_after_capture_operator.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AFTER_CAPTURE_OPERATOR = true; reformatFixture(); myFixture.checkResultByFile("with_space_after_capture_operator.ex"); }
public void testWithSpaceAroundInMatchOperators() { myFixture.configureByFile("without_space_around_in_match_operators.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_IN_MATCH_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_in_match_operators.ex"); }
public void testWithoutSpaceAroundInMatchOperators() { myFixture.configureByFile("with_space_around_in_match_operators.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_IN_MATCH_OPERATORS = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_in_match_operators.ex"); }
public void testWithSpaceAroundRangeOperator() { myFixture.configureByFile("without_space_around_range_operator.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_RANGE_OPERATOR = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_range_operator.ex"); }
public void testWithoutSpaceAroundTypeOperator() { myFixture.configureByFile("with_space_around_type_operator.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_TYPE_OPERATOR = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_type_operator.ex"); }
public void testWithSpaceAroundTypeOperator() { myFixture.configureByFile("without_space_around_type_operator.ex"); temporaryCodeStyleSettings.getCustomSettings(CodeStyleSettings.class).SPACE_AROUND_TYPE_OPERATOR = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_type_operator.ex"); }