refact: remove DataType from conditional
This commit is contained in:
parent
5380215a56
commit
005bbe7d60
@ -25,7 +25,6 @@ type Conditional struct {
|
|||||||
Key string
|
Key string
|
||||||
Operator string
|
Operator string
|
||||||
Value string
|
Value string
|
||||||
DataType string // TODO: not something we can parse from string, but find a way to determine this later
|
|
||||||
Extension string // AND, OR, etc
|
Extension string // AND, OR, etc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,9 +181,6 @@ func TestParseSelectStatement(t *testing.T) {
|
|||||||
if expectedCondition.Value != answer.Conditionals[i].Value {
|
if expectedCondition.Value != answer.Conditionals[i].Value {
|
||||||
t.Errorf("got %s for Select.Conditionals[%d].Value, expected %s", answer.Conditionals[i].Value, i, expectedCondition.Value)
|
t.Errorf("got %s for Select.Conditionals[%d].Value, expected %s", answer.Conditionals[i].Value, i, expectedCondition.Value)
|
||||||
}
|
}
|
||||||
if expectedCondition.DataType != answer.Conditionals[i].DataType {
|
|
||||||
t.Errorf("got %s for Select.Conditionals[%d].DataType, expected %s", answer.Conditionals[i].DataType, i, expectedCondition.DataType)
|
|
||||||
}
|
|
||||||
if expectedCondition.Extension != answer.Conditionals[i].Extension {
|
if expectedCondition.Extension != answer.Conditionals[i].Extension {
|
||||||
t.Errorf("got %s for Select.Conditionals[%d].Extension, expected %s", answer.Conditionals[i].Extension, i, expectedCondition.Extension)
|
t.Errorf("got %s for Select.Conditionals[%d].Extension, expected %s", answer.Conditionals[i].Extension, i, expectedCondition.Extension)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user