(t *testing.T)
| 230 | } |
| 231 | |
| 232 | func TestSelectWithWhereLogicalOperationOR(t *testing.T) { |
| 233 | |
| 234 | engineTestSuite := engineTableContentTestSuite{ |
| 235 | createInputs: []string{ |
| 236 | "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );", |
| 237 | }, |
| 238 | insertAndDeleteInputs: []string{ |
| 239 | "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );", |
| 240 | "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, 'w' );", |
| 241 | "INSERT INTO tb1 VALUES( 'goodbye', 3, 33, 'e' );", |
| 242 | }, |
| 243 | selectInput: "SELECT * FROM tb1 WHERE one NOT 'goodbye' OR two EQUAL 3;", |
| 244 | expectedOutput: [][]string{ |
| 245 | {"one", "two", "three", "four"}, |
| 246 | {"hello", "1", "11", "q"}, |
| 247 | {"goodbye", "3", "33", "e"}, |
| 248 | }, |
| 249 | } |
| 250 | |
| 251 | engineTestSuite.runTestSuite(t) |
| 252 | } |
| 253 | |
| 254 | func TestSelectWithWhereLogicalOperationOROperationAND(t *testing.T) { |
| 255 |
nothing calls this directly
no test coverage detected