(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func TestSelectWithWhereEqual(t *testing.T) { |
| 88 | engineTestSuite := engineTableContentTestSuite{ |
| 89 | createInputs: []string{ |
| 90 | "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );", |
| 91 | }, |
| 92 | insertAndDeleteInputs: []string{ |
| 93 | "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );", |
| 94 | "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, 'w' );", |
| 95 | "INSERT INTO tb1 VALUES( 'byebye', 3, 33, 'e' );", |
| 96 | }, |
| 97 | selectInput: "SELECT one, two, three, four FROM tb1 WHERE one EQUAL 'hello';", |
| 98 | expectedOutput: [][]string{ |
| 99 | {"one", "two", "three", "four"}, |
| 100 | {"hello", "1", "11", "q"}, |
| 101 | }, |
| 102 | } |
| 103 | |
| 104 | engineTestSuite.runTestSuite(t) |
| 105 | } |
| 106 | |
| 107 | func TestSelectWithWhereNotEqual(t *testing.T) { |
| 108 |
nothing calls this directly
no test coverage detected