Correct unit test cheat sheet
This commit is contained in:
@@ -325,6 +325,8 @@ CLASS zcl_demo_abap_unit_test IMPLEMENTATION.
|
||||
METHOD get_common_div_and_gcd.
|
||||
"Calculates the common divisors and the greatest common divisor of two numbers
|
||||
|
||||
CLEAR: common_divisors, gcd.
|
||||
|
||||
CHECK a >= 1.
|
||||
CHECK b >= 1.
|
||||
|
||||
@@ -364,6 +366,8 @@ CLASS zcl_demo_abap_unit_test IMPLEMENTATION.
|
||||
METHOD get_digit_sum.
|
||||
"Calculates the digit sum of a number
|
||||
|
||||
CLEAR digit_sum.
|
||||
|
||||
CHECK num >= 0.
|
||||
|
||||
DATA(converted_int) = CONV string( num ).
|
||||
|
||||
Reference in New Issue
Block a user