(t *testing.T)
| 274 | } |
| 275 | |
| 276 | func TestValueFloat(t *testing.T) { |
| 277 | c, _ := e.NewContext() |
| 278 | |
| 279 | for _, tt := range valueFloatTests { |
| 280 | val, err := NewValue(tt.value) |
| 281 | if err != nil { |
| 282 | t.Errorf("NewValue('%v'): %s", tt.value, err) |
| 283 | continue |
| 284 | } |
| 285 | |
| 286 | actual := val.Float() |
| 287 | |
| 288 | if reflect.DeepEqual(actual, tt.expected) == false { |
| 289 | t.Errorf("Value.Float('%v'): expected '%#v', actual '%#v'", tt.value, tt.expected, actual) |
| 290 | } |
| 291 | |
| 292 | val.Destroy() |
| 293 | } |
| 294 | |
| 295 | c.Destroy() |
| 296 | } |
| 297 | |
| 298 | var valueBoolTests = []struct { |
| 299 | value interface{} |
nothing calls this directly
no test coverage detected