(t *testing.T)
| 231 | } |
| 232 | |
| 233 | func TestLangSupport(t *testing.T) { |
| 234 | input := ` |
| 235 | query { |
| 236 | me(id: test) { |
| 237 | name@en |
| 238 | } |
| 239 | } |
| 240 | ` |
| 241 | l := lex.Lexer{ |
| 242 | Input: input, |
| 243 | } |
| 244 | l.Run(lexTopLevel) |
| 245 | it := l.NewIterator() |
| 246 | for it.Next() { |
| 247 | item := it.Item() |
| 248 | require.NotEqual(t, item.Typ, lex.ItemError) |
| 249 | t.Log(item.String()) |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | func TestMultiLangSupport(t *testing.T) { |
| 254 | input := ` |