Skip to content

Commit

Permalink
Add example where has_any_word test produces different input and valu…
Browse files Browse the repository at this point in the history
…e in a result
  • Loading branch information
rowanseymour committed Oct 31, 2017
1 parent 6880c82 commit 333ab86
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions cmd/flowrunner/testdata/flows/two_questions.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
]
},
"98503572-25bf-40ce-ad72-8836b6549a38": {
"test": [
"arguments": [
"rouge"
]
},
"a51e5c8c-c891-401d-9c62-15fc37278c94": {
"test": [
"blue"
"arguments": [
"bleu"
]
},
"598ae7a5-2f81-48f1-afac-595262514aa1": {
Expand All @@ -30,7 +30,7 @@
},
"c70fe86c-9aac-4cc2-a5cb-d35cbe3fed6e": {
"name": [
"Blue"
"Bleu"
]
},
"78ae8f05-f92e-43b2-a886-406eaea1b8e0": {
Expand All @@ -40,7 +40,7 @@
},
"d2a4052a-3fa9-4608-ab3e-5b9631440447": {
"text": [
"@(TITLE(run.input.text))! Bien sur! Quelle est votes soda preferee? (pepsi/coke)"
"@(TITLE(run.results.favorite_color.category_localized))! Bien sur! Quelle est votes soda preferee? (pepsi/coke)"
]
},
"e27c3bce-1095-4d08-9164-dc4530a0688a": {
Expand Down Expand Up @@ -143,7 +143,7 @@
{
"uuid": "d2a4052a-3fa9-4608-ab3e-5b9631440447",
"type": "reply",
"text": "@(TITLE(run.input.text)) it is! What is your favorite soda? (pepsi/coke)"
"text": "@(TITLE(run.results.favorite_color.category_localized)) it is! What is your favorite soda? (pepsi/coke)"
}
],
"wait": {
Expand Down
28 changes: 14 additions & 14 deletions cmd/flowrunner/testdata/flows/two_questions_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"msg_uuid": "84f8a3cf-0f2c-4881-9502-2d7b114bf01f",
"text": "Blue",
"text": "I like blue!",
"type": "msg_received",
"urn": "tel:+12065551212"
}
Expand Down Expand Up @@ -147,11 +147,11 @@
"event": {
"category": "Blue",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"input": "Blue",
"input": "I like blue!",
"name": "Favorite Color",
"node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d",
"type": "save_flow_result",
"value": "Blue"
"value": "blue"
},
"step_uuid": ""
},
Expand Down Expand Up @@ -226,7 +226,7 @@
"input": {
"channel_uuid": "57f1078f-88aa-46f4-a59a-948a5739c03d",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"text": "Blue",
"text": "I like blue!",
"type": "msg",
"urn": "tel:+12065551212",
"uuid": "84f8a3cf-0f2c-4881-9502-2d7b114bf01f"
Expand Down Expand Up @@ -262,18 +262,18 @@
},
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"msg_uuid": "84f8a3cf-0f2c-4881-9502-2d7b114bf01f",
"text": "Blue",
"text": "I like blue!",
"type": "msg_received",
"urn": "tel:+12065551212"
},
{
"category": "Blue",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"input": "Blue",
"input": "I like blue!",
"name": "Favorite Color",
"node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d",
"type": "save_flow_result",
"value": "Blue"
"value": "blue"
}
],
"exit_uuid": "c70fe86c-9aac-4cc2-a5cb-d35cbe3fed6e",
Expand Down Expand Up @@ -315,10 +315,10 @@
"favorite_color": {
"category": "Blue",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"input": "Blue",
"input": "I like blue!",
"name": "Favorite Color",
"node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d",
"value": "Blue"
"value": "blue"
}
},
"status": "waiting",
Expand Down Expand Up @@ -456,18 +456,18 @@
},
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"msg_uuid": "84f8a3cf-0f2c-4881-9502-2d7b114bf01f",
"text": "Blue",
"text": "I like blue!",
"type": "msg_received",
"urn": "tel:+12065551212"
},
{
"category": "Blue",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"input": "Blue",
"input": "I like blue!",
"name": "Favorite Color",
"node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d",
"type": "save_flow_result",
"value": "Blue"
"value": "blue"
}
],
"exit_uuid": "c70fe86c-9aac-4cc2-a5cb-d35cbe3fed6e",
Expand Down Expand Up @@ -563,10 +563,10 @@
"favorite_color": {
"category": "Blue",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"input": "Blue",
"input": "I like blue!",
"name": "Favorite Color",
"node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d",
"value": "Blue"
"value": "blue"
},
"soda": {
"category": "Coke",
Expand Down

0 comments on commit 333ab86

Please sign in to comment.