Add tests

pull/3082/head
gunnaraasen 2015-06-23 10:11:19 -07:00
parent a367e2b165
commit 5bb4d3d3e6
1 changed files with 7 additions and 4 deletions

View File

@ -106,10 +106,13 @@ func TestParseCommand_Insert(t *testing.T) {
cmd string
}{
{cmd: "INSERT cpu,host=serverA,region=us-west value=1.0"},
{cmd: " INSERT test.test cpu,host=serverA,region=us-west value=1.0"},
{cmd: "INSERT test.test cpu,host=serverA,region=us-west value=1.0"},
{cmd: "Insert test.test cpu,host=serverA,region=us-west value=1.0"},
{cmd: "insert test.test cpu,host=serverA,region=us-west value=1.0"},
{cmd: " INSERT cpu,host=serverA,region=us-west value=1.0"},
{cmd: "INSERT cpu,host=serverA,region=us-west value=1.0"},
{cmd: "insert cpu,host=serverA,region=us-west value=1.0 "},
{cmd: "insert"},
{cmd: "Insert "},
{cmd: "insert c"},
{cmd: "insert int"},
}
for _, test := range tests {