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

make a compareString function for goada_test.go #4

Closed
mertcanaltin opened this issue Jun 13, 2023 · 2 comments
Closed

make a compareString function for goada_test.go #4

mertcanaltin opened this issue Jun 13, 2023 · 2 comments

Comments

@mertcanaltin
Copy link
Contributor

@lemire @anonrig hi add helper functions to prevent this code repetition? For example, if I create a helper function called compareString like

this:

func compareString(t *testing.T, expected, actual, message string) {
	if expected != actual {
		t.Errorf("Expected %s, but got %s. %s", expected, actual, message)
	}
}
@mertcanaltin mertcanaltin changed the title make a compareString function make a compareString function for goada_test.go Jun 13, 2023
@lemire
Copy link
Member

lemire commented Jun 13, 2023

That would be fine. PR invited.

@mertcanaltin
Copy link
Contributor Author

That would be fine. PR invited.

ı created it here : pr

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

2 participants