diff --git a/src/zcl_sampletrmactions.clas.abap b/src/zcl_sampletrmactions.clas.abap index 2f139ea..b7c726d 100644 --- a/src/zcl_sampletrmactions.clas.abap +++ b/src/zcl_sampletrmactions.clas.abap @@ -3,30 +3,29 @@ CLASS zcl_sampletrmactions DEFINITION FINAL CREATE PUBLIC . -PUBLIC SECTION. + PUBLIC SECTION. - METHODS constructor. + METHODS constructor. - METHODS sum + METHODS sum IMPORTING iv_val1 TYPE i iv_val2 TYPE i RETURNING VALUE(rv_result) TYPE i. -PROTECTED SECTION. -PRIVATE SECTION. + PROTECTED SECTION. + PRIVATE SECTION. ENDCLASS. CLASS ZCL_SAMPLETRMACTIONS IMPLEMENTATION. - METHOD constructor. " empty ENDMETHOD. - METHOD sum. - rv_result = iv_val1 + iv_val2 . " abapLint will tell us something is wrong with this line (space_before_dot) + rv_result = iv_val1 + iv_val2. ENDMETHOD. + ENDCLASS. diff --git a/src/zcl_sampletrmactions.clas.testclasses.abap b/src/zcl_sampletrmactions.clas.testclasses.abap index 172951a..c94b60f 100644 --- a/src/zcl_sampletrmactions.clas.testclasses.abap +++ b/src/zcl_sampletrmactions.clas.testclasses.abap @@ -20,7 +20,7 @@ CLASS lcl_test IMPLEMENTATION. cl_abap_unit_assert=>assert_equals( msg = 'Error in result 1 + 1' exp = m_cut->sum( iv_val1 = 1 iv_val2 = 1 ) - act = 1 ). " ADASH will tell us this unit test is broken + act = 2 ). ENDMETHOD. ENDCLASS.