-
Notifications
You must be signed in to change notification settings - Fork 9
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 #67 from consultingwerk/feature/SCL-4054
Feature/scl 4054
- Loading branch information
Showing
9 changed files
with
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#Build Number for ANT. Do not edit! | ||
#Wed Mar 15 13:59:34 CET 2023 | ||
build.number=3 | ||
#Thu Apr 13 18:03:49 CEST 2023 | ||
build.number=4 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,33 @@ | ||
package test.SCL4054; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
|
||
import junit.framework.Assert; | ||
|
||
import org.prorefactor.refactor.RefactorException; | ||
import org.prorefactor.treeparser.ParseUnit; | ||
|
||
import test.ProparseTestCase; | ||
|
||
public class TestParseIfDefined extends ProparseTestCase { | ||
|
||
public void setUp () throws Exception { | ||
super.setUp(); | ||
} | ||
|
||
public void test () throws RefactorException, IOException { | ||
File original; | ||
ParseUnit pu; | ||
byte[] originalText; | ||
byte[] nodeText; | ||
|
||
original = new File ("src/test/SCL4054/testCode.p"); | ||
|
||
pu = new ParseUnit (original, "ISO8859-1"); | ||
Assert.assertNotNull(pu); | ||
pu.treeParser01(); | ||
Assert.assertNotNull(pu.getTopNode()); | ||
} | ||
} |
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 @@ | ||
/* *************************** Definitions ************************** */ | ||
|
||
BLOCK-LEVEL ON ERROR UNDO, THROW. | ||
|
||
&SCOPED-DEFINE Test 42 | ||
|
||
&SCOPED-DEFINE Test-42 | ||
|
||
&IF DEFINED (Test-42) NE 0 &THEN | ||
MESSAGE "bam" | ||
VIEW-AS ALERT-BOX. | ||
&ENDIF | ||
|
||
|
||
&IF DEFINED (Test-{&Test}) NE 0 &THEN | ||
MESSAGE "yeah" | ||
VIEW-AS ALERT-BOX. | ||
&ENDIF | ||
|
||
MESSAGE "boah" | ||
VIEW-AS ALERT-BOX. |