-
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 #660 from smeup/bugfix/LS24004854/Coercing-from-un…
…limitedString-to-string Bugfix/LS24004854/Coercing from `UnlimitedString` to `String`
- Loading branch information
Showing
6 changed files
with
113 additions
and
0 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
25 changes: 25 additions & 0 deletions
25
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00162.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,25 @@ | ||
V* ============================================================== | ||
V* 12/11/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * SUBST with a side effect where the factor 2 has changed type | ||
O * in `UnlimitedStringValue`. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix: | ||
O * `Issue executing SubstStmt at line 22. begin 2, end 10, | ||
O * length 5` | ||
V* ============================================================== | ||
D £UIBDS DS | ||
D £UIBME 10 | ||
D £UIBP1 0 | ||
D £DECPA S 10 | ||
D £G40PA S 10 | ||
|
||
C EVAL £UIBP1='ABCDE' | ||
C EVAL £DECPA=£UIBP1 | ||
C £DECPA DSPLY | ||
C 8 SUBST £DECPA:3 £G40PA #Issue executing SubstStmt at line 22. begin 2, end 10, length 5 | ||
C £G40PA DSPLY | ||
|
||
C SETON LR |
15 changes: 15 additions & 0 deletions
15
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00163.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,15 @@ | ||
V* ============================================================== | ||
V* 12/11/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Assignment of UnlimitedStringValue to a StringValue where | ||
O * the size of first is greater than second. | ||
V* ============================================================== | ||
D VARUNL S 0 | ||
D VARSTD S 3 | ||
|
||
C EVAL VARUNL='ABCDE' | ||
C EVAL VARSTD=VARUNL | ||
C VARSTD DSPLY | ||
|
||
C SETON LR |
16 changes: 16 additions & 0 deletions
16
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00164.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,16 @@ | ||
V* ============================================================== | ||
V* 12/11/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Assignment of UnlimitedStringValue to a StringValue where | ||
O * the size of first is smaller than second. | ||
V* ============================================================== | ||
D VARUNL S 0 | ||
D VARSTD S 10 | ||
|
||
C EVAL VARUNL='ABCDE' | ||
C EVAL VARSTD=VARUNL | ||
C MOVE 'FG' VARSTD | ||
C VARSTD DSPLY | ||
|
||
C SETON LR |
16 changes: 16 additions & 0 deletions
16
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00165.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,16 @@ | ||
V* ============================================================== | ||
V* 12/11/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Assignment of UnlimitedStringValue to a StringValue (VARYING) | ||
O * where the size of first is smaller than second. | ||
V* ============================================================== | ||
D VARUNL S 0 | ||
D VARSTD S 10 VARYING | ||
|
||
C EVAL VARUNL='ABCDE' | ||
C EVAL VARSTD=VARUNL | ||
C MOVE 'FG' VARSTD | ||
C VARSTD DSPLY | ||
|
||
C SETON LR |