-
Notifications
You must be signed in to change notification settings - Fork 7
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
Variadic record elements #67
Conversation
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.
LGTM overall. Just have a couple nits/questions
@@ -3264,6 +3273,7 @@ class TestDomain private constructor() { | |||
val elements = listOfNotNull( | |||
ionSymbol("human"), | |||
firstName?.let { ionSexpOf(ionSymbol("first_name"), it.toIonElement()) }, | |||
if(middleNames.any()) { ionSexpOf(ionSymbol("middle_names"), *middleNames.map { it.toIonElement() }.toTypedArray()) } else { null }, |
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.
nit: could add a space after if
for consistency
tc.messageMustContainStrings.forEach { | ||
assertTrue(ex.message!!.contains(it), "exception message must contain '$it'") |
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.
nit: Hmm is there a better way to check the exception messages? Perhaps something similar to what is done in TypeDomainParserErrorsTest.kt?
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.
I'd agree that would be better but that part of the code isn't currently factored to do that and doing so should be a separate effort.
Implements #44.
This builds on #60, which should be merged first.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.