Merge pull request #2356 from marcosnils/regex_scanner_test

Add tests for REGEX operators
pull/2364/merge
Philip O'Toole 2015-04-20 21:11:59 -07:00
commit feee330a1e
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ func TestScanner_Scan(t *testing.T) {
{s: `,`, tok: influxql.COMMA},
{s: `;`, tok: influxql.SEMICOLON},
{s: `.`, tok: influxql.DOT},
{s: `=~`, tok: influxql.EQREGEX},
{s: `!~`, tok: influxql.NEQREGEX},
// Identifiers
{s: `foo`, tok: influxql.IDENT, lit: `foo`},