-
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 #471 from smeup/bugfix/NW23001440/reset-inline-dec…
…laration Bugfix/nw23001440/reset inline declaration
- Loading branch information
Showing
4 changed files
with
42 additions
and
12 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
15 changes: 14 additions & 1 deletion
15
rpgJavaInterpreter-core/src/test/kotlin/com/smeup/rpgparser/smeup/MULANGT40ArrayAndDSTest.kt
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
package com.smeup.rpgparser.smeup | ||
|
||
open class MULANGT40ArrayAndDSTest : MULANGTTest() | ||
import org.junit.Test | ||
import kotlin.test.assertEquals | ||
|
||
open class MULANGT40ArrayAndDSTest : MULANGTTest() { | ||
/** | ||
* Reset with inline declaration | ||
* @see #242 | ||
*/ | ||
@Test | ||
fun executeT40_A10_P10() { | ||
val expected = listOf("Contenuto Pre-RESET: AAA - Contenuto Post-RESET:") | ||
assertEquals(expected, "smeup/T40_A10_P10".outputOf(configuration = smeupConfig)) | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
rpgJavaInterpreter-core/src/test/resources/smeup/T40_A10_P10.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,7 @@ | ||
D £DBG_Str S 150 VARYING | ||
C EVAL A10_D1='AAA' | ||
C EVAL £DBG_Str='Contenuto Pre-RESET: '+A10_D1 | ||
C RESET A10_D1 10 | ||
C EVAL £DBG_Str=%TRIMR(£DBG_Str) | ||
C +' - Contenuto Post-RESET: '+A10_D1 | ||
C £DBG_Str DSPLY |