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

Incorrect name generation (C++) #13

Closed
skeeto opened this issue Jun 13, 2018 · 3 comments
Closed

Incorrect name generation (C++) #13

skeeto opened this issue Jun 13, 2018 · 3 comments

Comments

@skeeto
Copy link
Owner

skeeto commented Jun 13, 2018

@Kronuz, I've noticed that the C++ version often misses groups entirely, and the generated name is wrong. For example:

$ ./namegen '(a)(a)' 10
> combinations = 1
a
a
a
a
a
a
a
a
a
a

As far as I can tell, it's the second "a" that's missed. And this only seems to happen for certain letters (in both positions), like "a", "h", "i", "j", "q", "u", "v", "x", and "y" (and maybe more).

This comes up alternations, too:

$ ./namegen '(a)(b|a)' 10
> combinations = 2
a
ab
a
ab
ab
a
ab
a
ab
ab

That one is unable to generate "aa". I poked around in GDB trying to figure this out (where, unfortunately, it failed to pretty print any of the C++ objects), but had no luck so far.

@AquariusPower
Copy link

AquariusPower commented Jun 13, 2018

For more complex bigger names, like 2 names with more than 2 letters each (like 'ash son'), these still happen if you configure them to happen in between?
If that happens with names we could use, then patterns will fail when they shouldnt.

@skeeto
Copy link
Owner Author

skeeto commented Jun 13, 2018 via email

@AquariusPower
Copy link

xD

@skeeto skeeto closed this as completed Jun 16, 2018
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