Correct unit test cheat sheet

This commit is contained in:
danrega
2023-02-21 12:25:40 +01:00
parent bfa9df1845
commit 94f2d47a9a
3 changed files with 7 additions and 11 deletions

View File

@@ -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 ).