public void testNoSpaceAfterAtOperator() { myFixture.configureByFile("space_after_at_operator.ex"); reformatFixture(); myFixture.checkResultByFile("no_space_after_at_operator.ex"); }
public void testSpaceAfterAfterKeyword() { myFixture.configureByFile("incorrect_spaces_after_after_keyword.ex"); reformatFixture(); myFixture.checkResultByFile("space_after_after_keyword.ex"); }
public void testSpaceAfterCatchKeyword() { myFixture.configureByFile("incorrect_spaces_after_catch_keyword.ex"); reformatFixture(); myFixture.checkResultByFile("space_after_catch_keyword.ex"); }
public void testStructKeysAreNormalIndented() { String path = "struct_keys_are_normal_indented.ex"; myFixture.configureByFile(path); reformatFixture(); myFixture.checkResultByFile(path); }
public void testQualifierDotQuoteParentheses() { myFixture.configureByFile("QualifierDotQuoteParentheses.ex"); myFixture.enableInspections(NoParenthesesStrict.class); myFixture.checkHighlighting(); }
public void testMapConstructionArgumentsAssociationsAllWrapIfAnyWraps() { myFixture.configureByFile("map_construction_arguments_associations_all_wrap_if_any_wraps_before.ex"); reformatFixture(); myFixture.checkResultByFile("map_construction_arguments_associations_all_wrap_if_any_wraps_after.ex"); }
public void testSingleSpaceNotOperator() { myFixture.configureByFile("multispace_not_operator.ex"); reformatFixture(); myFixture.checkResultByFile("single_space_not_operator.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 testWithSpaceBeforeComma() { myFixture.configureByFile("without_space_before_comma.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_BEFORE_COMMA = true; reformatFixture(); myFixture.checkResultByFile("with_space_before_comma.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 testWithSpaceAroundMultiplicationOperators() { myFixture.configureByFile("without_space_around_multiplication_operators.ex"); temporaryCodeStyleSettings .getCommonSettings(ElixirLanguage.INSTANCE) .SPACE_AROUND_MULTIPLICATIVE_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_multiplication_operators.ex"); }
public void testWithSpaceWithinParentheses() { myFixture.configureByFile("without_space_within_parentheses.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_PARENTHESES = true; reformatFixture(); myFixture.checkResultByFile("with_space_within_parentheses.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 testWithoutSpaceBeforeComma() { myFixture.configureByFile("with_space_before_comma.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_BEFORE_COMMA = false; reformatFixture(); myFixture.checkResultByFile("without_space_before_comma.ex"); }
public void testWithSpaceAroundUnaryOperators() { myFixture.configureByFile("without_space_around_unary_operators.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_UNARY_OPERATOR = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_unary_operators.ex"); }