-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
provide VarArgFormatter #351
Comments
You can use the |
Sure, |
Ok, I understand and I agree. But then this would be just an alternative implementation to format any lists, right? So maybe it should not only format varargs, but also any kind of Iterables. It should then also be named differently, IMHO. |
What about |
I just tried to reproduce this issue and JGiven already formats varargs parameters as a comma-separated list. See linked commit. |
I see. This seems to be because of Kotlin we are using where a varags seems to be treated as an array. My y proposed formatter was actually an array formatter. By the way, I still owe you a Kotlin example... |
I see. Still even Java arrays are formatted as a comma-separated list. Is Kotlin using some other array type as Java? A Kotlin example would help me tracking down the issue :-) |
Did you test your PR with Kotlin? Because your code uses |
My actual implementation in Kotlin was:
|
When using given().something_with_varargs_params_$("foo","bar") I want to have nice formatting of the vararg params, currently its something like "something with varargs params String@12345"
The text was updated successfully, but these errors were encountered: