Skip to content

Commit

Permalink
test(VWOTest.php): vverify data
Browse files Browse the repository at this point in the history
  • Loading branch information
softvar committed Nov 21, 2022
1 parent 5b9adac commit 03ca3b5
Showing 1 changed file with 0 additions and 250 deletions.
250 changes: 0 additions & 250 deletions tests/assets/SegmentEvaluatorJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,256 +21,6 @@
class SegmentEvaluatorJson
{
var $setting = '{
"greater_than_operator": {
"is_greater_than_operator_pass": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "gt(100)"
}
}
]
},
"expectation": true,
"customVariables": {
"eq": 200
}
},
"is_greater_than_operator_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "gt(100)"
}
}
]
},
"expectation": false,
"customVariables": {
"eq": 50
}
},
"is_greater_than_operator_equal_values_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "gt(100)"
}
}
]
},
"expectation": false,
"customVariables": {
"eq": 100
}
},
"is_greater_than_operator_string_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "gt(100)"
}
}
]
},
"expectation": false,
"customVariables": {
"eq": "abc"
}
}
},
"less_than_operator": {
"is_less_than_operator_pass": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "lt(100)"
}
}
]
},
"expectation": true,
"customVariables": {
"eq": 50
}
},
"is_less_than_operator_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "lt(100)"
}
}
]
},
expectation: false,
customVariables: {
eq: 150
}
},
"is_less_than_operator_equal_values_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "lt(100)"
}
}
]
},
"expectation": false,
"customVariables": {
eq: 100
}
},
"is_less_than_operator_string_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq":"lt(100)"
}
}
]
},
"expectation": false,
"customVariables": {
"eq": "abc"
}
}
},
"greater_than_equal_to_operator": {
"is_greater_than_equal_to_operator_pass": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "gte(100)"
}
}
]
},
"expectation": true,
"customVariables": {
"eq": 150
}
},
"is_greater_than_equal_to_operator_equal_values_pass": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "gte(100)"
}
}
]
},
"expectation": true,
"customVariables": {
"eq": 100
}
},
"is_greater_than_equal_to_operator_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "gte(100)"
}
}
]
},
"expectation": false,
"customVariables": {
"eq": 50
}
},
"is_greater_than_equal_to_operator_string_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "gte(100)"
}
}
]
},
"expectation": false,
"customVariables": {
"eq": "abc"
}
}
},
"less_than_equal_to_operator": {
"is_less_than_equal_to_operator_pass": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "lte(100)"
}
}
]
},
"expectation": true,
"customVariables": {
"eq": 50
}
},
"is_less_than_equal_to_operator_equal_values_pass": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "lte(100)"
}
}
]
},
"expectation": true,
"customVariables": {
"eq": 100
}
},
"is_less_than_equal_to_operator_fail": {
"dsl": {
"or": [
{
"custom_variable": {
"eq": "lte(100)"
}
}
]
},
"expectation": false,
"customVariables": {
"eq": 120
}
},
"is_less_than_equal_to_operator_string_fail":
{
"dsl": {
"or": [
{
"custom_variable": {
"eq": "lte(100)"
}
}
]
},
"expectation": false,
"customVariables": {
"eq": "abc"
}
}
},
"and_operator": {
"single_and_operator_matching": {
"dsl": {
Expand Down

0 comments on commit 03ca3b5

Please sign in to comment.