Skip to content

Commit

Permalink
Implemented INDIC03 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
davidepalladino-apuliasoft committed Mar 5, 2024
1 parent 95c9492 commit 15c8300
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2255,6 +2255,15 @@ Test 6
assertEquals(expected, "INDIC02".outputOf())
}

@Test
fun executeINDIC03() {
val expected = listOf(
"*INKA(0) *IN01(1)",
"*INKA(1) *IN01(0)"
)
assertEquals(expected, "INDIC03".outputOf())
}

@Test
fun executeBIFCHECK() {
assertEquals(listOf("ok"), outputOf("BIFCHECK"))
Expand Down
18 changes: 18 additions & 0 deletions rpgJavaInterpreter-core/src/test/resources/INDIC03.rpgle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
D £DBG_Str S 50 VARYING

C MOVEL *ON *IN01
C MOVEL *OFF *INKA
*
C EVAL £DBG_Str= '*INKA('+%CHAR(*INKA)+')'
C +' *IN01('+%CHAR(*IN01)+')'
C £DBG_Str DSPLY
* result: '*INKA(0) *IN01(1)'
*
C MOVEL *OFF *IN01
C MOVEL *ON *INKA
*
C EVAL £DBG_Str= '*INKA('+%CHAR(*INKA)+')'
C +' *IN01('+%CHAR(*IN01)+')'
C £DBG_Str DSPLY
* result: '*INKA(1) *IN01(0)'
C SETON LR

0 comments on commit 15c8300

Please sign in to comment.