Skip to content

Commit

Permalink
Merge pull request #1 from alexflint/travis_ping
Browse files Browse the repository at this point in the history
fix test failures
  • Loading branch information
alexflint committed Feb 16, 2017
2 parents be3c7a3 + 45e5d6c commit e80c3b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scalar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ func assertParse(t *testing.T, expected interface{}, str string) {
v := reflect.New(reflect.TypeOf(expected)).Elem()
err := ParseValue(v, str)
if assert.NoError(t, err) {
assert.Equal(t, expected, v)
assert.Equal(t, expected, v.Interface())
}

ptr := reflect.New(reflect.PtrTo(reflect.TypeOf(expected))).Elem()
err = ParseValue(ptr, str)
if assert.NoError(t, err) {
assert.Equal(t, expected, ptr.Elem())
assert.Equal(t, expected, ptr.Elem().Interface())
}

assert.True(t, CanParse(v.Type()))
Expand Down

0 comments on commit e80c3b7

Please sign in to comment.