ttt307307 / junitparams

Automatically exported from code.google.com/p/junitparams
0 stars 0 forks source link

problems with parameters parsing #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have test method that accepts two strings. i'm using 

@Parameters({
   XXX,
   YYY
})

i want to pass slash as a first parameter and two slashes as a second 
paraemter. in java string, with escaping it is:
"\\, \\\\"
and parameters parsing fails. but when i add space:
"\\ , \\\\"
it passes

Original issue reported on code.google.com by Piotr.Tu...@gmail.com on 6 Jul 2012 at 2:41

GoogleCodeExporter commented 8 years ago
This is related to the fact, that \\, means it's not the next param, but a 
comma in the first one. So if you want to have a slash at the end of a param 
string, add a space after it (it will be trimmed anyway)

Original comment by lipinski...@gmail.com on 14 Dec 2012 at 4:06