Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestStateFromParam type problem #42

Open
jwfergus opened this issue Dec 19, 2016 · 0 comments
Open

TestStateFromParam type problem #42

jwfergus opened this issue Dec 19, 2016 · 0 comments

Comments

@jwfergus
Copy link

I'm relatively new to golang, so I might be out of my depth here - sorry if so.

As soon as I forked this repo and ran go test I receive the following error:

        Error Trace:    shortcuts_test.go:30
	Error:      	Not equal: 
	            	expected: int(30)
	            	received: float64(30)

I fixed it for my purposes by adding a float64 convert to shortcuts_test.go line 29:
assert.Equal(t, float64(30), s.Get("age").Data())

What am I missing? I have to assume this worked out of the box on your machine. I tried using go build -a to force rebuilding of all packages (though I don't see how this would really solve the problem, I just saw this suggestion when searching the web for solutions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant