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

Add javadoc example and unit test for composing set via CodeWriter.on… #619

Merged
merged 3 commits into from
Oct 31, 2020

Conversation

kggilmer
Copy link
Contributor

…Section() and inline section notation.

Issue #, if available: N/A

Based on slack discussion, added javadoc to demonstrate generating a list using inline sections with an accompanying unit test. Happy to remove the unit test of deemed redundant.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kggilmer kggilmer requested a review from mtdowling October 30, 2020 21:15

writer.write("[${L@testSection}]", "");

assertThat(writer.toString(), equalTo("[1, 2, 3]"));
Copy link
Member

Choose a reason for hiding this comment

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

Oh, looks like this needs either a trailing newline, or you need to disable newlines in the writer

Copy link
Member

@mtdowling mtdowling Oct 31, 2020

Choose a reason for hiding this comment

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

I've pushed up a fix. I also moved this test to smithy-utils.

@mtdowling mtdowling self-requested a review October 31, 2020 16:02
@mtdowling mtdowling merged commit 6eaaa87 into master Oct 31, 2020
@mtdowling mtdowling deleted the inline-section-set-example branch December 11, 2020 17:58
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.

2 participants