-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gmickus
committed
Sep 9, 2024
1 parent
e68add4
commit 3002e9d
Showing
20 changed files
with
262 additions
and
139 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ionalTests/block/12for-block-end2/input.p → ...s/block/12for-block-end2-disabled/input.p
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
2 changes: 1 addition & 1 deletion
2
...onalTests/block/12for-block-end2/target.p → .../block/12for-block-end2-disabled/target.p
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
2 changes: 1 addition & 1 deletion
2
...nalTests/block/15for-block-inner2/input.p → ...block/15for-block-inner2-disabled/input.p
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
2 changes: 1 addition & 1 deletion
2
...alTests/block/15for-block-inner2/target.p → ...lock/15for-block-inner2-disabled/target.p
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
2 changes: 1 addition & 1 deletion
2
...nalTests/block/17for-block-inner4/input.p → ...block/17for-block-inner4-disabled/input.p
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
2 changes: 1 addition & 1 deletion
2
...alTests/block/17for-block-inner4/target.p → ...lock/17for-block-inner4-disabled/target.p
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
repeat: | ||
define variable a as integer no-undo. | ||
end. | ||
end. |
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,6 +1,5 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.emptyBlockFormatting": true, | ||
"AblFormatter.forFormatting": false}*/ | ||
/* { "AblFormatter.forFormatting": true}*/ | ||
|
||
for each Customer by Customer.CreditLimit by Customer.Name: | ||
end. |
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,6 +1,7 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.emptyBlockFormatting": true, | ||
"AblFormatter.forFormatting": false}*/ | ||
/* { "AblFormatter.forFormatting": true}*/ | ||
|
||
for each Customer by Customer.CreditLimit by Customer.Name: | ||
for each Customer | ||
by Customer.CreditLimit | ||
by Customer.Name: | ||
end. |
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 |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
for | ||
each | ||
Customer: | ||
Customer.var += 1. | ||
Customer.var += 1. | ||
end. |
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,8 +1,11 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": false, | ||
/* { "AblFormatter.blockFormatting": true, | ||
"AblFormatter.forFormatting": true | ||
}*/ | ||
|
||
for each Customer where Customer.var = 1: | ||
Customer.var += 1. | ||
end. | ||
for each Customer where | ||
Customer.var = 1: | ||
Customer.var += 1. | ||
Customer.var *= 2. | ||
Customer.var /= 3. | ||
end. |
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 |
---|---|---|
|
@@ -6,4 +6,6 @@ | |
for each Customer where | ||
Customer.var = 1: | ||
Customer.var += 1. | ||
Customer.var *= 2. | ||
Customer.var /= 3. | ||
end. |
10 changes: 4 additions & 6 deletions
10
resources/functionalTests/if/10-then-same-do-same-else-do/input.p
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,14 +1,12 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.ifFormatting": true, | ||
"AblFormatter.blockFormatting": true, | ||
"AblFormatter.ifFormattingThenLocation": "Same", | ||
"AblFormatter.ifFormattingDoLocation": "Same"}*/ | ||
|
||
if a = b then do: | ||
if a = b then do: | ||
return a. | ||
end. | ||
|
||
else do: | ||
return b. | ||
end. | ||
else do: | ||
return b. | ||
end. | ||
|
1 change: 0 additions & 1 deletion
1
resources/functionalTests/if/10-then-same-do-same-else-do/target.p
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
16 changes: 16 additions & 0 deletions
16
resources/functionalTests/ifFunction/11else-new-line-in-for/input.p
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,16 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.ifFunctionFormatting": true, | ||
"AblFormatter.ifFunctionFormattingAddParentheses": "No", | ||
"AblFormatter.ifFunctionFormattingElseLocation": "New"}*/ | ||
|
||
FOR EACH Customer NO-LOCK | ||
BY IF Customer.Balance > 10000 THEN 1 ELSE | ||
IF Customer.Balance > 5000 THEN 1.5 ELSE | ||
IF Customer.Balance > 1000 THEN 2 ELSE | ||
IF Customer.Balance > 500 THEN 2.5 ELSE 3 | ||
BY IF Customer.SalesRep = "John" THEN 1 ELSE | ||
IF Customer.SalesRep = "Jane" THEN 2 ELSE | ||
IF Customer.SalesRep = "Doe" THEN 3 ELSE 4: | ||
DISPLAY Customer.SalesRep Customer.Balance Customer.Name. | ||
END. | ||
|
18 changes: 18 additions & 0 deletions
18
resources/functionalTests/ifFunction/11else-new-line-in-for/target.p
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 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.ifFunctionFormatting": true, | ||
"AblFormatter.ifFunctionFormattingAddParentheses": "No", | ||
"AblFormatter.ifFunctionFormattingElseLocation": "New"}*/ | ||
|
||
FOR EACH Customer NO-LOCK | ||
BY IF Customer.Balance > 10000 THEN 1 | ||
ELSE IF Customer.Balance > 5000 THEN 1.5 | ||
ELSE IF Customer.Balance > 1000 THEN 2 | ||
ELSE IF Customer.Balance > 500 THEN 2.5 | ||
ELSE 3 | ||
BY IF Customer.SalesRep = "John" THEN 1 | ||
ELSE IF Customer.SalesRep = "Jane" THEN 2 | ||
ELSE IF Customer.SalesRep = "Doe" THEN 3 | ||
ELSE 4: | ||
DISPLAY Customer.SalesRep Customer.Balance Customer.Name. | ||
END. | ||
|
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
Oops, something went wrong.