add condense to testclass (#35)
This commit is contained in:
@@ -2,7 +2,7 @@ CLASS zcl_raindrops DEFINITION PUBLIC.
|
||||
PUBLIC SECTION.
|
||||
METHODS raindrops
|
||||
IMPORTING
|
||||
input TYPE string OPTIONAL
|
||||
input TYPE i
|
||||
RETURNING
|
||||
VALUE(result) TYPE string.
|
||||
ENDCLASS.
|
||||
|
||||
@@ -20,13 +20,13 @@ CLASS ltcl_raindrops IMPLEMENTATION.
|
||||
|
||||
METHOD test_number1.
|
||||
cl_abap_unit_assert=>assert_equals(
|
||||
act = cut->raindrops( 1 )
|
||||
act = condense( cut->raindrops( 1 ) )
|
||||
exp = '1' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD test_number2.
|
||||
cl_abap_unit_assert=>assert_equals(
|
||||
act = cut->raindrops( 307 )
|
||||
act = condense( cut->raindrops( 307 ) )
|
||||
exp = '307' ).
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user