mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 11:46:38 +08:00
fixup
This commit is contained in:
parent
801eb64460
commit
5435f89d0a
|
@ -571,7 +571,7 @@ CLASS zcl_abapgit_diff IMPLEMENTATION.
|
|||
|
||||
" SAP function ignores lines that contain only whitespace so we compare directly
|
||||
" Also check if length differs and implicitly if one line has trailing space(s)
|
||||
rv_has_diff = xsdbool( iv_old <> iv_new
|
||||
rv_has_diff = boolc( iv_old <> iv_new
|
||||
AND ( strlen( condense( iv_old ) ) = 0
|
||||
OR strlen( condense( iv_new ) ) = 0
|
||||
OR strlen( iv_old ) <> strlen( iv_new ) ) ).
|
||||
|
|
|
@ -49,6 +49,7 @@ CLASS ltcl_diff DEFINITION FOR TESTING
|
|||
diff15 FOR TESTING RAISING zcx_abapgit_exception,
|
||||
diff16 FOR TESTING RAISING zcx_abapgit_exception,
|
||||
diff17 FOR TESTING RAISING zcx_abapgit_exception,
|
||||
diff18 FOR TESTING RAISING zcx_abapgit_exception,
|
||||
map_beacons FOR TESTING RAISING zcx_abapgit_exception.
|
||||
|
||||
ENDCLASS.
|
||||
|
@ -628,6 +629,24 @@ CLASS ltcl_diff IMPLEMENTATION.
|
|||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD diff18.
|
||||
|
||||
" no diff
|
||||
add_new( `* Test` ).
|
||||
|
||||
add_old( `* Test` ).
|
||||
|
||||
add_expected( iv_new_num = ' 1'
|
||||
iv_new = `* Test`
|
||||
iv_result = zif_abapgit_definitions=>c_diff-unchanged
|
||||
iv_old_num = ' 1'
|
||||
iv_old = `* Test` ).
|
||||
|
||||
test( ).
|
||||
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD map_beacons.
|
||||
|
||||
add_new( `REPORT ztest_beacon.` ).
|
||||
|
|
Loading…
Reference in New Issue
Block a user