(t *testing.T)
| 96 | } |
| 97 | |
| 98 | func TestAbruptSchemaQuery(t *testing.T) { |
| 99 | input := ` |
| 100 | schema { |
| 101 | pred |
| 102 | ` |
| 103 | l := lex.Lexer{ |
| 104 | Input: input, |
| 105 | } |
| 106 | l.Run(lexTopLevel) |
| 107 | var typ lex.ItemType |
| 108 | it := l.NewIterator() |
| 109 | for it.Next() { |
| 110 | item := it.Item() |
| 111 | t.Log(item.String()) |
| 112 | typ = item.Typ |
| 113 | } |
| 114 | require.Equal(t, lex.ItemError, typ) |
| 115 | } |
| 116 | |
| 117 | func TestAbruptMutation(t *testing.T) { |
| 118 | input := ` |