From 2bac1a80979583d2f5f2968a4e4a7a5220cb1231 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Mon, 20 Apr 2015 19:43:06 -0300 Subject: [PATCH] Add test for REGEX operators --- influxql/scanner_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/influxql/scanner_test.go b/influxql/scanner_test.go index 5ed23fdb83..e3a03a3532 100644 --- a/influxql/scanner_test.go +++ b/influxql/scanner_test.go @@ -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`},