-
Notifications
You must be signed in to change notification settings - Fork 169
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
Tanka can't handle top level arrays #321
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.
This is cool! Some nits and this is ready to go 🚀
"testing" | ||
) | ||
|
||
func TestEvalJsonnet(t *testing.T) { |
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.
Would love to see this also check objects, and evaluation results.
You could for example create multiple pseudo "environments" in testdata, like so:
- /
- /jsonnetfile.json
- /cases/
- /cases/array/main.jsonnet
- /cases/object/main.jsonnet
Then evaluate these as a table test, checking the error is nil and the result is what we expect.
Good work!
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.
Great! I'll add it. Thank you for your feedback.
@sh0rez all changes are ready. Let me know if it's ok. If you think it's ok, we could create another PR with a single commit for readability. |
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.
Hey, sorry for the long delay here.
Looks awesome, thanks a lot!!
Hi @sh0rez.
I'm glad to help with this issue #310. Please, let me know if I forgot something or we need to add anything else.