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 sexp and struct writers to the LazyRawTextWriter_1_0 #684

Merged
merged 3 commits into from
Nov 30, 2023

Conversation

zslayton
Copy link
Contributor

  • Introduces a TextContainerWriter_1_0 that houses information and behavior common to the container writer.
  • Adds an s-expression writer, TextSExpWriter_1_0.
  • Adds a struct writer, TextStructWriter_1_0.

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

@zslayton zslayton marked this pull request as ready for review November 19, 2023 18:43
@@ -564,4 +708,64 @@ mod tests {
};
writer_test(expected, test)
}

#[test]
fn write_sexp() -> IonResult<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not urgent, but it would be good to have a test case demonstrating that multiple levels of nested containers will work properly.

@zslayton zslayton merged commit 47c32a5 into main Nov 30, 2023
20 checks passed
@zslayton zslayton deleted the text-containers branch November 30, 2023 16:24
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.

None yet

2 participants