-
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 #416 from smeup/bugfix/NW23001440/CHECK_BIF
Bugfix/nw23001440/check bif
- Loading branch information
Showing
11 changed files
with
217 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
D name S 30A | ||
D name2 S 4A | ||
D pos S 5U 0 | ||
D £DBG_Str S 30 | ||
D £DBG_Pas S 3 | ||
D alphabet C 'ABCDEFGHIJKLMNOPQRSTUVWXYZ + | ||
D abcdefghijklmnopqrstuvwxyz + | ||
D 0123456789+/' | ||
* | ||
C IF %CHECK(alphabet: 'Antonio Cosentino 123')= 0 | ||
C EVAL £DBG_Str='ok' | ||
C ELSE | ||
C EVAL £DBG_Str='ko' | ||
C ENDIF | ||
C £DBG_Str DSPLY |
68 changes: 68 additions & 0 deletions
68
rpgJavaInterpreter-core/src/test/resources/smeup/T04_A15_P01.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,68 @@ | ||
D name S 30A | ||
D name2 S 4A | ||
D pos S 5U 0 | ||
D £DBG_Str S 30 | ||
D £DBG_Pas S 3 | ||
C EVAL £DBG_Pas='P01' | ||
* | ||
C EVAL name = ' Amit Jaiswal' | ||
C EVAL pos = %check(' ' : name) | ||
C EVAL £DBG_Str='P01_01('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name = ' Amit Jaiswal' | ||
C EVAL pos = %check(' Atim' : name) | ||
C EVAL £DBG_Str='P01_02('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name = ' Amit Jaiswal' | ||
C EVAL pos = %check(' Amit Jai' : name) | ||
C EVAL £DBG_Str='P01_03('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name = 'Amit Jaiswal' | ||
C EVAL pos = %check('A' : name) | ||
C EVAL £DBG_Str='P01_04('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name = 'Amit Jaiswal' | ||
C EVAL pos = %check('a' : name) | ||
C EVAL £DBG_Str='P01_05('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name = 'Amit Jaiswal' | ||
C EVAL pos = %check('ab' : name) | ||
C EVAL £DBG_Str='P01_06('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name2 = 'abab' | ||
C EVAL pos = %check('ab' : name2) | ||
C EVAL £DBG_Str='P01_07('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name2 = 'abab' | ||
C EVAL pos = %check('ac' : name2) | ||
C EVAL £DBG_Str='P01_08('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name2 = 'abab' | ||
C EVAL pos = %check('acd' : name2) | ||
C EVAL £DBG_Str='P01_09('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name2 = 'abab' | ||
C EVAL pos = %check('cd' : name2) | ||
C EVAL £DBG_Str='P01_10('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name2 = 'abab' | ||
C EVAL pos = %check('ca' : name2) | ||
C EVAL £DBG_Str='P01_11('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name2 = 'abab' | ||
C EVAL pos = %check('cab' : name2) | ||
C EVAL £DBG_Str='P01_12('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C SETON LR |
18 changes: 18 additions & 0 deletions
18
rpgJavaInterpreter-core/src/test/resources/smeup/T04_A15_P02.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,18 @@ | ||
D name S 30A | ||
D pos S 5U 0 | ||
D £DBG_Str S 30 | ||
D £DBG_Pas S 3 | ||
* | ||
C EVAL £DBG_Pas='P02' | ||
* | ||
C EVAL name = 'Amit Jaiswal' | ||
C EVAL pos = %check('Jais' : name:6) | ||
C EVAL £DBG_Str='P02_01('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name = 'Amit Jaiswal' | ||
C EVAL pos = %check('A' : name:6) | ||
C EVAL £DBG_Str='P02_02('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C SETON LR |
28 changes: 28 additions & 0 deletions
28
rpgJavaInterpreter-core/src/test/resources/smeup/T04_A15_P03.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,28 @@ | ||
D name S 30A | ||
D pos S 5U 0 | ||
D £DBG_Str S 30 | ||
D £DBG_Pas S 3 | ||
D alphabet C 'ABCDEFGHIJKLMNOPQRSTUVWXYZ + | ||
D abcdefghijklmnopqrstuvwxyz + | ||
D 0123456789+/' | ||
* | ||
C EVAL £DBG_Pas='P03' | ||
* | ||
C EVAL name = 'Amit Jaiswal' | ||
C EVAL pos = %check(alphabet: name) | ||
C EVAL £DBG_Str='P03_01('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C EVAL name = '££ t abc1234' | ||
C EVAL pos = %check(alphabet: name) | ||
C EVAL £DBG_Str='P03_02('+%char(pos)+')' | ||
C £DBG_Str DSPLY | ||
* | ||
C IF %CHECK(alphabet: 'Antonio Cosentino')= 0 | ||
C EVAL £DBG_Str='P03_03(ok)' | ||
C ELSE | ||
C EVAL £DBG_Str='P03_03(ko)' | ||
C ENDIF | ||
C £DBG_Str DSPLY | ||
* | ||
C SETON LR |