-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #683 from smeup/bugfix/LS24005329/improve-comparis…
…on-between-hival-and-string Bugfix/LS24005329/Improve comparison between `*HIVAL` and String
- Loading branch information
Showing
8 changed files
with
287 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00183.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
V* ============================================================== | ||
V* 10/12/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Comparison between: | ||
O * - *HIVAL and String, | ||
O * - *HIVAL and *HIVAL | ||
O * by using "not equal" operator. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * The expression is not evaluated when it's true. | ||
V* ============================================================== | ||
D ARR01 S 2 DIM(10) INZ('FF') | ||
D ARR02 S 2 DIM(10) INZ(*HIVAL) | ||
|
||
C IF *HIVAL<>ARR01(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR01(1)<>*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF *HIVAL<>ARR02(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR02(1)<>*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C SETON LR |
36 changes: 36 additions & 0 deletions
36
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00184.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
V* ============================================================== | ||
V* 10/12/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Comparison between: | ||
O * - *HIVAL and String, | ||
O * - *HIVAL and *HIVAL | ||
O * by using "greater" operator. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * The expression is not evaluated when it's true. | ||
V* ============================================================== | ||
D ARR01 S 2 DIM(10) INZ('FF') | ||
D ARR02 S 2 DIM(10) INZ(*HIVAL) | ||
|
||
C IF *HIVAL>ARR01(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR01(1)<*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF *HIVAL>ARR02(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR02(1)<*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C SETON LR |
36 changes: 36 additions & 0 deletions
36
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00185.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
V* ============================================================== | ||
V* 10/12/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Comparison between: | ||
O * - *HIVAL and String, | ||
O * - *HIVAL and *HIVAL | ||
O * by using "greater/equal" operator. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * The expression is not evaluated when it's true. | ||
V* ============================================================== | ||
D ARR01 S 2 DIM(10) INZ('FF') | ||
D ARR02 S 2 DIM(10) INZ(*HIVAL) | ||
|
||
C IF *HIVAL>=ARR01(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR01(1)<=*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF *HIVAL>=ARR02(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR02(1)<=*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C SETON LR |
36 changes: 36 additions & 0 deletions
36
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00186.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
V* ============================================================== | ||
V* 10/12/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Comparison between: | ||
O * - *HIVAL and String, | ||
O * - *HIVAL and *HIVAL | ||
O * by using "lower" operator. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * The expression is not evaluated when it's true. | ||
V* ============================================================== | ||
D ARR01 S 2 DIM(10) INZ('FF') | ||
D ARR02 S 2 DIM(10) INZ(*HIVAL) | ||
|
||
C IF *HIVAL<ARR01(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR01(1)>*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF *HIVAL<ARR02(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR02(1)>*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C SETON LR |
36 changes: 36 additions & 0 deletions
36
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00187.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
V* ============================================================== | ||
V* 10/12/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Comparison between: | ||
O * - *HIVAL and String, | ||
O * - *HIVAL and *HIVAL | ||
O * by using "lower/equal" operator. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * The expression is not evaluated when it's true. | ||
V* ============================================================== | ||
D ARR01 S 2 DIM(10) INZ('FF') | ||
D ARR02 S 2 DIM(10) INZ(*HIVAL) | ||
|
||
C IF *HIVAL<=ARR01(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR01(1)>=*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF *HIVAL<=ARR02(1) | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C IF ARR02(1)>=*HIVAL | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C SETON LR |
21 changes: 21 additions & 0 deletions
21
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00188.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
V* ============================================================== | ||
V* 10/12/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Comparison between: | ||
O * - *HIVAL as Standalone of 2 chars, | ||
O * - *HIVAL as Standalone of 4 chars, | ||
O * by using "equal" operator. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * The expression is not evaluated when it's true. | ||
V* ============================================================== | ||
D D1 S 2 INZ(*HIVAL) | ||
D D2 S 4 INZ(*HIVAL) | ||
|
||
C IF D1=D2 | ||
C 'TRUE' DSPLY | ||
C ENDIF | ||
C 'END' DSPLY | ||
|
||
C SETON LR |