(c *C)
| 40 | } |
| 41 | |
| 42 | func (s *LexerSuite) TestString(c *C) { |
| 43 | l, _ := lex("query", "package (<< 1.3)") |
| 44 | |
| 45 | c.Check(l.Current().String(), Equals, "\"package\"") |
| 46 | l.Consume() |
| 47 | c.Check(l.Current().String(), Equals, "(") |
| 48 | } |
| 49 | |
| 50 | func (s *LexerSuite) TestError(c *C) { |
| 51 | l, _ := lex("query", "'package") |