Skip to content

Commit

Permalink
basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavsharma873 committed Apr 5, 2021
1 parent 1099ab0 commit a601f1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions constructor/dsl/dsl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ func TestParse(t *testing.T) {
Input: `{"operation": "subtraction","left_value": {{math_2}},"right_value": "20"}`,
OutputPath: "math_3",
},
{
Type: job.Math,
Input: `{"operation": "multiplication","left_value": {{math_3}},"right_value": "5"}`,
OutputPath: "math_4",
},
{
Type: job.Math,
Input: `{"operation": "division","left_value": {{math_4}},"right_value": "5"}`,
OutputPath: "math_5",
},
{
Type: job.FindBalance,
Input: `{"account_identifier": {{random_account.account_identifier}},"minimum_balance":{"value": "10000000000000000","currency": {{currency}}}}`, // nolint
Expand Down
2 changes: 2 additions & 0 deletions constructor/dsl/testdata/multiple_workflow.ros
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ request_funds(1){
});
math_2 = 10 + {{math_1}};
math_3 = {{math_2}} - "20";
math_4 = {{math_3}} * "5";
math_5 = {{math_4}} / "5";
loaded_account = find_balance({
"account_identifier": {{random_account.account_identifier}},
"minimum_balance":{
Expand Down

0 comments on commit a601f1d

Please sign in to comment.