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

Adds support for multi-line macro inputs. Makes MacroUtils more modular. Adds rawTest macro. Fix #1524. #1528

Merged
merged 17 commits into from
Oct 25, 2024

Conversation

AndreaLaGrotteria
Copy link
Collaborator

No description provided.

@AndreaLaGrotteria AndreaLaGrotteria self-assigned this Oct 23, 2024
@AndreaLaGrotteria AndreaLaGrotteria linked an issue Oct 23, 2024 that may be closed by this pull request
Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test fail

@AndreaLaGrotteria AndreaLaGrotteria changed the title Adds rawTest macro and tests. Fix #1524. Adds support for multi-line inputs. Makes MacroUtils more modular. Adds rawTest macro. Fix #1524. Oct 24, 2024
@AndreaLaGrotteria AndreaLaGrotteria changed the title Adds support for multi-line inputs. Makes MacroUtils more modular. Adds rawTest macro. Fix #1524. Adds support for multi-line macro inputs. Makes MacroUtils more modular. Adds rawTest macro. Fix #1524. Oct 24, 2024
@@ -18,7 +17,7 @@ class SourceMacroSubstitutionTest {

@Test
void testSubstitute(){
String str = "source:GithubConfiguration[]";
String str = "source:GithubConfiguration[]\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need to add a \n line character.

Suggested change
String str = "source:GithubConfiguration[]\n";
String str = "source:GithubConfiguration[]\n";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like a bad smell to me.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have multi-line inputs, the different lines will be separated by a \n, so it was to test that. If you look at the other tests you will see that input without \n is also tested and works.

@sdelamo sdelamo merged commit aeb98f2 into master Oct 25, 2024
2 checks passed
@sdelamo sdelamo deleted the 1524-move-rawtest-macro-to-core branch October 25, 2024 05:02
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

Successfully merging this pull request may close these issues.

Move rawTest macro to core
2 participants