-
Notifications
You must be signed in to change notification settings - Fork 3
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 #233 from MarkusAmshove/natparse/check-decide-on-d…
…atatypes Validate data type of DECIDE ON branches
- Loading branch information
Showing
5 changed files
with
211 additions
and
8 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
52 changes: 52 additions & 0 deletions
52
libs/natparse/src/test/resources/org/amshove/natparse/parsing/typing/decideOnTyping
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,52 @@ | ||
DEFINE DATA LOCAL | ||
1 #B-10 (B10) | ||
1 #A-10 (A10) | ||
1 #N-10 (N10) | ||
END-DEFINE | ||
|
||
DECIDE ON FIRST VALUE OF #A-10 | ||
|
||
VALUE 5 /* !{D:ERROR:NPP037} | ||
IGNORE | ||
|
||
VALUE TRUE /* !{D:ERROR:NPP037} | ||
IGNORE | ||
|
||
VALUE FALSE /* !{D:ERROR:NPP037} | ||
IGNORE | ||
|
||
NONE | ||
IGNORE | ||
END-DECIDE | ||
|
||
DECIDE ON FIRST VALUE OF #N-10 | ||
|
||
VALUE 5 | ||
IGNORE | ||
|
||
VALUE 500 | ||
IGNORE | ||
|
||
VALUE 'Hi' /* !{D:ERROR:NPP037} | ||
IGNORE | ||
|
||
VALUE TRUE /* !{D:ERROR:NPP037} | ||
IGNORE | ||
|
||
VALUE FALSE /* !{D:ERROR:NPP037} | ||
IGNORE | ||
|
||
NONE | ||
IGNORE | ||
END-DECIDE | ||
|
||
DECIDE ON FIRST VALUE OF #B-10 | ||
VALUE 5 | ||
IGNORE | ||
VALUE 'Hi' | ||
IGNORE | ||
NONE | ||
IGNORE | ||
END-DECIDE | ||
|
||
END |