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

GeneratorTest breaks on files with white space in name #379

Open
Ana03-cmd opened this issue Mar 14, 2025 · 3 comments
Open

GeneratorTest breaks on files with white space in name #379

Ana03-cmd opened this issue Mar 14, 2025 · 3 comments

Comments

@Ana03-cmd
Copy link

I have a language that generates files with whitespaces in the file name. However, when I write an Xpect test for this, the line

XPECT generated file MyFile 1.foo ---

creates an error because only MyFile is parsed as the parameter and 1.foo is left over. As a result, my correctly working code generator produces a test failure.

I believe, the fix would be to replace the following line:

with

@ParameterParser(syntax = "('file' arg2=STRING)?")

because then I could use a quoted string to provide my file name with white spaces in.

@cdietrich
Copy link
Member

wont this break backwards compatibility

@Nishantware
Copy link

i think we need to change in to string instead of text at that line ?

@cdietrich
Copy link
Member

If hi had figured out that do do I won’t have created the issue in the first place

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

3 participants