This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
forked from bancodobrasil/featws-transpiler
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
7 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
__tests__/transpiler/cases/0053 - slice_add_itens copy/expected.grl
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,27 @@ | ||
|
||
rule RequiredParams salience 10000000 { | ||
when | ||
true | ||
then | ||
|
||
ctx.SetRequiredConfigured(); | ||
Changed("ctx"); | ||
Retract("RequiredParams"); | ||
} | ||
|
||
rule HasRequiredParamsError salience 9999999 { | ||
when | ||
ctx.Has("requiredParamErrors") | ||
then | ||
Complete(); | ||
} | ||
|
||
rule feat_test salience 1000 { | ||
when | ||
true | ||
then | ||
ctx.Put("test", processor.ToMap("{\"percent\":\"%percent\"}")); | ||
result.Put("test", ctx.GetMap("test")); | ||
Changed("result"); | ||
Retract("feat_test"); | ||
} |
1 change: 1 addition & 0 deletions
1
__tests__/transpiler/cases/0053 - slice_add_itens copy/features.json
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 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
__tests__/transpiler/cases/0053 - slice_add_itens copy/parameters.json
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 changes: 10 additions & 0 deletions
10
__tests__/transpiler/cases/0053 - slice_add_itens copy/rules.json
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 @@ | ||
{ | ||
"test": { | ||
"condition": "true", | ||
"value": { | ||
"percent": "%percent" | ||
}, | ||
"dynamic": false, | ||
"type": "object" | ||
} | ||
} |
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