File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 18
18
19
19
2021-08-XX v.1.16.0
20
20
------------------
21
+ * Magic Number: Leading Zeros (#479)
21
22
* Prefer New to Create Object: Dynamic Type (#469)
22
23
* Magic Number: Table Index (#468)
23
24
* Use native *_wa variables (#474)
Original file line number Diff line number Diff line change @@ -72,9 +72,10 @@ CLASS y_check_magic_number IMPLEMENTATION.
72
72
METHOD is_magic_number .
73
73
DATA (string ) = token_wa-str.
74
74
REPLACE ALL OCCURRENCES OF | '| IN string WITH || .
75
+
75
76
result = xsdbool ( string IS NOT INITIAL
76
77
AND string CO '0123456789'
77
- AND string <> '0'
78
+ AND string CN '0'
78
79
AND string <> '1' ).
79
80
ENDMETHOD .
80
81
Original file line number Diff line number Diff line change @@ -336,3 +336,23 @@ CLASS ltc_empty_string IMPLEMENTATION.
336
336
ENDMETHOD .
337
337
338
338
ENDCLASS .
339
+
340
+
341
+ CLASS ltc_leading_zeros DEFINITION INHERITING FROM ltc_if FOR TESTING RISK LEVEL HARMLESS DURATION SHORT .
342
+ PROTECTED SECTION .
343
+ METHODS get_code_without_issue REDEFINITION .
344
+ ENDCLASS .
345
+
346
+ CLASS ltc_leading_zeros IMPLEMENTATION .
347
+
348
+ METHOD get_code_without_issue .
349
+ result = VALUE #(
350
+ ( ' REPORT ut_test.' )
351
+ ( ' START-OF-SELECTION.' )
352
+ ( | DATA char TYPE c LENGTH 6. | )
353
+ ( | IF char = '000000'. | )
354
+ ( ' ENDIF. ' )
355
+ ).
356
+ ENDMETHOD .
357
+
358
+ ENDCLASS .
You can’t perform that action at this time.
0 commit comments