Selectors and Ident
(t *testing.T)
| 245 | |
| 246 | // Selectors and Ident |
| 247 | func TestBasicIdent(t *testing.T) { |
| 248 | t.Parallel() |
| 249 | |
| 250 | scope := NewScope() |
| 251 | scope.Set("a", 5) |
| 252 | out, err := scope.InterpretString(`a`) |
| 253 | if err != nil { |
| 254 | t.Error(err) |
| 255 | } |
| 256 | expected := 5 |
| 257 | if !reflect.DeepEqual(expected, out) { |
| 258 | t.Errorf("Expected %#v got %#v.", expected, out) |
| 259 | } |
| 260 | } |
| 261 | func TestMissingBasicIdent(t *testing.T) { |
| 262 | t.Parallel() |
| 263 |
nothing calls this directly
no test coverage detected