-
Notifications
You must be signed in to change notification settings - Fork 149
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
Unable to pass newlines as a parameter (dupe of #30) #146
Comments
I did some debugging, I've traced the issue down to the |
To workaround this I am using a simple String wrapper:
Then you can use it in your provider method:
|
@coopstah13 you should use 2-dimensional array as result of provideInvalidValues. Something like:
should be enough for your case. |
I'm using the wrapper class workaround. I get the 2d array works, my largest issue is that it's easy to do it wrong and you won't even know. |
According to issue #30 the workaround for passing in newlines is to use a class provider. I'm using class providers nearly exclusively and my trailing newline is still trimmed.
In this example
a\n
anda\r
are provided in the test as justa
. I don't really care about how the "test readability" looks, I just want to test the data I want to test.The text was updated successfully, but these errors were encountered: