(t *testing.T)
| 212 | } |
| 213 | |
| 214 | func TestIRIRef(t *testing.T) { |
| 215 | input := ` |
| 216 | query testQuery { |
| 217 | me(id : <http://helloworld.com/how/are/you>) { |
| 218 | <http://verygood.com/what/about/you> |
| 219 | } |
| 220 | }` |
| 221 | l := lex.Lexer{ |
| 222 | Input: input, |
| 223 | } |
| 224 | l.Run(lexTopLevel) |
| 225 | it := l.NewIterator() |
| 226 | for it.Next() { |
| 227 | item := it.Item() |
| 228 | require.NotEqual(t, item.Typ, lex.ItemError) |
| 229 | t.Log(item.String()) |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | func TestLangSupport(t *testing.T) { |
| 234 | input := ` |