(t *testing.T)
| 239 | } |
| 240 | |
| 241 | func TestParse4_Error(t *testing.T) { |
| 242 | reset() |
| 243 | result, err := Parse("alive:bool @index(geo) .") |
| 244 | require.Contains(t, err.Error(), |
| 245 | "Tokenizer: geo isn't valid for predicate: alive of type: bool") |
| 246 | require.Nil(t, result) |
| 247 | } |
| 248 | |
| 249 | func TestParse4_NoError(t *testing.T) { |
| 250 | reset() |