FreeYourSoul / FSeam

Cpp header only library to manage compile time mock class generated via Python script
MIT License
86 stars 8 forks source link

Fixed problem where a substring match during FSeamMockData.hpp would … #11

Closed dashneptune closed 4 years ago

dashneptune commented 4 years ago

…cause invalid output.

If the generator is run twice, once where a class has a name that is a substring of another previously generated class, the generator fails to produce valid C++ syntax. This fixes that

FreeYourSoul commented 4 years ago

Would it be possible to write a non-regression test in order to validate the change fix this error generation issue?

dashneptune commented 4 years ago

This showed up for me just building the existing tests. This is the cause of the spare "lass" string in that was in the issues. That said, I would be willing to write a test specifically to make sure this doesn't fail