(t *testing.T)
| 115 | } |
| 116 | |
| 117 | func TestAbruptMutation(t *testing.T) { |
| 118 | input := ` |
| 119 | mutation { |
| 120 | set { |
| 121 | What is <this> . |
| 122 | Why is this #!!? |
| 123 | How is this? |
| 124 | }` |
| 125 | l := lex.Lexer{ |
| 126 | Input: input, |
| 127 | } |
| 128 | l.Run(lexTopLevel) |
| 129 | var typ lex.ItemType |
| 130 | it := l.NewIterator() |
| 131 | for it.Next() { |
| 132 | item := it.Item() |
| 133 | t.Log(item.String()) |
| 134 | typ = item.Typ |
| 135 | } |
| 136 | require.Equal(t, lex.ItemError, typ) |
| 137 | } |
| 138 | |
| 139 | func TestVariables1(t *testing.T) { |
| 140 | input := ` |