-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
buildSrc/src/main/java/io/micronaut/guides/core/MacroUtils.java
Outdated
Show resolved
Hide resolved
buildSrc/src/main/java/io/micronaut/guides/core/MacroUtils.java
Outdated
Show resolved
Hide resolved
buildSrc/src/main/java/io/micronaut/guides/core/RawTestMacroSubstitution.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test fail
buildSrc/src/test/java/io/micronaut/guides/core/RawTestMacroSubstitutionTest.java
Outdated
Show resolved
Hide resolved
buildSrc/src/main/java/io/micronaut/guides/core/RawTestMacroSubstitution.java
Outdated
Show resolved
Hide resolved
@@ -18,7 +17,7 @@ class SourceMacroSubstitutionTest { | |||
|
|||
@Test | |||
void testSubstitute(){ | |||
String str = "source:GithubConfiguration[]"; | |||
String str = "source:GithubConfiguration[]\n"; |
There was a problem hiding this comment.
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.
String str = "source:GithubConfiguration[]\n"; | |
String str = "source:GithubConfiguration[]\n"; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
No description provided.