icnhoukdsiih / testlib

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

Strings generated with rnd.next("[\\!-\\~]{1,100}") do not correspond to this pattern when validated #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
> What steps will reproduce the problem?
1. Generate a random string of length 100 with characters between ! and ~, 
inclusive
    registerGen(argc, argv);
    cout << rnd.next("[\\!-\\~]{1,100}") << endl;

2. The generated string might be 
q;.^@q~svfO%g>ApP~}GEa[\!8

3. Now its validation with the same pattern fails
    registerValidation();
    string st = inf.readLine("[\\!-\\~]{1,100}","p");

> What is the expected output? What do you see instead?
I expect the given string to pass validation.

> What version of the product are you using? On what operating system?
0.6.4 on Ubuntu
the current version (as of 15/10/2011) in Polygon

> Please provide any additional information below.

Original issue reported on code.google.com by michayl...@gmail.com on 15 Oct 2011 at 8:50

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r31.

Original comment by mirzayan...@gmail.com on 15 Oct 2011 at 9:03