-
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
Dec 18, 2024
1 parent
19ce270
commit 142d86f
Showing
27 changed files
with
147 additions
and
103 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
12 changes: 12 additions & 0 deletions
12
resources/functionalTests/expression/1logical-for-new-line-forFormatting-true/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,12 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "New", | ||
"AblFormatter.forFormatting": true}*/ | ||
|
||
FOR EACH enchantedMenu WHERE enchantedMenu.StyleCode = "" OR enchantedMenu.StyleCode = "APPBAR" OR | ||
enchantedMenu.StyleCode = "EXPLORER" OR | ||
enchantedMenu.StyleCode = "TASKBAR": | ||
|
||
MESSAGE "Greetings". | ||
END. | ||
|
14 changes: 14 additions & 0 deletions
14
resources/functionalTests/expression/1logical-for-new-line-forFormatting-true/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,14 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "New", | ||
"AblFormatter.forFormatting": true}*/ | ||
|
||
FOR EACH enchantedMenu WHERE | ||
enchantedMenu.StyleCode = "" OR | ||
enchantedMenu.StyleCode = "APPBAR" OR | ||
enchantedMenu.StyleCode = "EXPLORER" OR | ||
enchantedMenu.StyleCode = "TASKBAR": | ||
|
||
MESSAGE "Greetings". | ||
END. | ||
|
7 changes: 0 additions & 7 deletions
7
resources/functionalTests/expression/1logical-for-new-line/input.p
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
resources/functionalTests/expression/1logical-for-new-line/target.p
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
resources/functionalTests/expression/1logical-for-same-line-forFormatting-false/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,10 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "Same", | ||
"AblFormatter.forFormatting": false}*/ | ||
|
||
|
||
for each A where (Customer.CreditLimit >= low-credit) AND | ||
(Customer.CreditLimit <= hi-credit): | ||
|
||
end. |
16 changes: 9 additions & 7 deletions
16
...xpression/1logical-for-same-line/target.p → ...or-same-line-forFormatting-false/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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "Same"}*/ | ||
|
||
for each A where (Customer.CreditLimit >= low-credit) AND (Customer.CreditLimit <= hi-credit): | ||
|
||
end. | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "Same", | ||
"AblFormatter.forFormatting": false}*/ | ||
|
||
|
||
for each A where (Customer.CreditLimit >= low-credit) AND (Customer.CreditLimit <= hi-credit): | ||
|
||
end. |
7 changes: 0 additions & 7 deletions
7
resources/functionalTests/expression/1logical-for-same-line/input.p
This file was deleted.
Oops, something went wrong.
20 changes: 10 additions & 10 deletions
20
...expression/2-logical-for-new-line/input.p → ...-for-new-line-forFormatting-false/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,10 +1,10 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "New"}*/ | ||
|
||
FOR EACH customer WHERE (customer.balance > 1000 AND customer.status = "Active") | ||
OR (customer.balance <= 1000 AND customer.status = "Inactive") | ||
AND customer.country = "USA": | ||
|
||
DISPLAY customer.name customer.balance customer.status customer.country. | ||
END. | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "New", | ||
"AblFormatter.forFormatting": false}*/ | ||
|
||
FOR EACH customer WHERE (customer.balance > 1000 AND customer.status = "Active") OR (customer.balance <= 1000 AND customer.status = "Inactive") | ||
AND customer.country = "USA": | ||
|
||
DISPLAY customer.name customer.balance customer.status customer.country. | ||
END. |
25 changes: 13 additions & 12 deletions
25
...xpression/2-logical-for-new-line/target.p → ...for-new-line-forFormatting-false/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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "New"}*/ | ||
|
||
FOR EACH customer WHERE (customer.balance > 1000 AND | ||
customer.status = "Active") OR | ||
(customer.balance <= 1000 AND | ||
customer.status = "Inactive") AND | ||
customer.country = "USA": | ||
|
||
DISPLAY customer.name customer.balance customer.status customer.country. | ||
END. | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "New", | ||
"AblFormatter.forFormatting": false}*/ | ||
|
||
FOR EACH customer WHERE (customer.balance > 1000 AND | ||
customer.status = "Active") OR | ||
(customer.balance <= 1000 AND | ||
customer.status = "Inactive") AND | ||
customer.country = "USA": | ||
|
||
DISPLAY customer.name customer.balance customer.status customer.country. | ||
END. |
11 changes: 11 additions & 0 deletions
11
resources/functionalTests/expression/2-logical-for-new-line-forFormatting-true/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,11 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "New", | ||
"AblFormatter.forFormatting": true}*/ | ||
|
||
FOR EACH | ||
enchantedAttribute WHERE enchantedAttribute.MagicValueGuid = sourceBuffer::MagicValueGuid | ||
OR (enchantedAttribute.MagicInstanceGuid = sourceBuffer::MagicInstanceGuid AND enchantedAttribute.MagicLabel = sourceBuffer::MagicLabel): | ||
delete enchantedAttribute . | ||
end. | ||
|
12 changes: 12 additions & 0 deletions
12
resources/functionalTests/expression/2-logical-for-new-line-forFormatting-true/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,12 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true, | ||
"AblFormatter.expressionFormattingLogicalLocation": "New", | ||
"AblFormatter.forFormatting": true}*/ | ||
|
||
FOR EACH enchantedAttribute WHERE | ||
enchantedAttribute.MagicValueGuid = sourceBuffer::MagicValueGuid OR | ||
(enchantedAttribute.MagicInstanceGuid = sourceBuffer::MagicInstanceGuid AND | ||
enchantedAttribute.MagicLabel = sourceBuffer::MagicLabel): | ||
delete enchantedAttribute . | ||
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,4 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true}*/ | ||
|
||
a = b >= c. | ||
a = b >= c. |
2 changes: 1 addition & 1 deletion
2
resources/functionalTests/expression/4assign-array-literal/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,4 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true}*/ | ||
|
||
a [i] = b[j]. | ||
a[i] = c + b[x * 3]. |
2 changes: 1 addition & 1 deletion
2
resources/functionalTests/expression/4assign-array-literal/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true}*/ | ||
|
||
a[i] = b[j]. | ||
a[i] = c + b[x * 3]. |
4 changes: 0 additions & 4 deletions
4
resources/functionalTests/expression/4assign-dynamic-new/input.p
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
resources/functionalTests/expression/4assign-dynamic-new/target.p
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true}*/ | ||
|
||
a = b modulo c. | ||
a = b modulo c. |
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,4 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true}*/ | ||
|
||
myCustObj = NEW acme.myObjs.CustObj ( ) . | ||
myCustObj = NEW acme.myObjs.CustObj(a + 3 * 3). |
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,4 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true}*/ | ||
|
||
myCustObj = NEW acme.myObjs.CustObj(). | ||
myCustObj = NEW acme.myObjs.CustObj(a + 3 * 3). |
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,4 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true}*/ | ||
|
||
a = not c. | ||
a = not c. |
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,4 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.expressionFormatting": true}*/ | ||
|
||
a = ( b + c ) * ( d - e ) / f. | ||
a = ( b + c ) * ( d - e ) / f. |
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