Skip to content

Commit

Permalink
Merge pull request #259 from nyaruka/type_names
Browse files Browse the repository at this point in the history
XType names
  • Loading branch information
rowanseymour authored Apr 18, 2018
2 parents 8af7352 + 032fdc0 commit fe13c11
Show file tree
Hide file tree
Showing 63 changed files with 1,332 additions and 1,332 deletions.
2 changes: 1 addition & 1 deletion cmd/exptester/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {
vars := types.NewXMap(map[string]types.XValue{
"int1": types.NewXNumberFromInt(1),
"int2": types.NewXNumberFromInt(2),
"string1": types.NewXString("string1"),
"string1": types.NewXText("string1"),
})

if len(os.Args) != 2 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/flowrunner/testdata/flows/dynamic_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
{
"key": "age",
"label": "Age",
"value_type": "decimal"
"value_type": "number"
},
{
"key": "state",
Expand Down
2 changes: 1 addition & 1 deletion cmd/flowrunner/testdata/flows/dynamic_groups_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"contact": {
"fields": {
"age": {
"decimal": 17,
"number": 17,
"text": "17"
},
"first_name": {
Expand Down
2 changes: 1 addition & 1 deletion cmd/flowrunner/testdata/flows/subflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"cases": [
{
"uuid": "19a95efc-ac69-4b6a-a90b-f84a60b49e4f",
"type": "is_string_eq",
"type": "is_text_eq",
"arguments": [
"completed"
],
Expand Down
2 changes: 1 addition & 1 deletion cmd/flowrunner/testdata/flows/subflow_other.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"type": "switch",
"cases": [
{
"type": "is_string_eq",
"type": "is_text_eq",
"uuid": "57eda3da-817b-4942-a5fc-e1ea5d12c82d",
"arguments": [
"completed"
Expand Down
2 changes: 1 addition & 1 deletion cmd/flowrunner/testdata/flows/webhook_persists.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
],
"uuid": "789b45bc-005a-46db-8331-6a966c0141c2",
"exit_uuid": "bb09f6b6-89f4-45bd-8cc9-1d4655914590",
"type": "is_string_eq"
"type": "is_text_eq"
}
],
"default_exit_uuid": "3699df6c-15f0-4a86-b7f8-9fe1497e7854",
Expand Down
4 changes: 2 additions & 2 deletions contactql/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestEvaluateQuery(t *testing.T) {
{`Gender is MALE`, true},
{`gender = "female"`, false},

// decimal field condition
// number field condition
{`age = 36`, true},
{`age is 35`, false},
{`age > 36`, false},
Expand All @@ -101,7 +101,7 @@ func TestEvaluateQuery(t *testing.T) {
{`age < 37`, true},
{`age <= 36`, true},

// date field condition
// datetime field condition
{`dob = 1981/05/28`, true},
{`dob > 1981/05/28`, false},
{`dob > 1981/05/27`, true},
Expand Down
Loading

0 comments on commit fe13c11

Please sign in to comment.