From 2c58a4697605434b956686e391b3943a2505a7b7 Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Wed, 15 Feb 2017 17:53:42 -0800 Subject: [PATCH 1/3] minor tweak --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d4e2c01..2b28ce2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,4 @@ before_install: - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi script: - $HOME/gopath/bin/goveralls -service=travis-ci + From 9cd235e2a758ca6742743b565afa8ee863eaa6e8 Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Wed, 15 Feb 2017 17:56:45 -0800 Subject: [PATCH 2/3] fix tests --- scalar_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scalar_test.go b/scalar_test.go index 14172ed..d70bd32 100644 --- a/scalar_test.go +++ b/scalar_test.go @@ -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())) From 45e5d6cd8605faef82fda2bacc59e734a0b6f1f0 Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Wed, 15 Feb 2017 17:57:39 -0800 Subject: [PATCH 3/3] whitespace --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2b28ce2..d4e2c01 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,3 @@ before_install: - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi script: - $HOME/gopath/bin/goveralls -service=travis-ci -