Skip to content

Fix various small issues found when I imported all recent error tests #410

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

Merged
merged 1 commit into from
May 23, 2025

Conversation

stephenamar-db
Copy link
Collaborator

No description provided.

@stephenamar-db stephenamar-db marked this pull request as ready for review May 23, 2025 21:04
@stephenamar-db stephenamar-db merged commit 2525bf7 into master May 23, 2025
6 checks passed
@stephenamar-db stephenamar-db deleted the stephenamar-db/stack/ab branch May 23, 2025 21:08
@He-Pin
Copy link
Contributor

He-Pin commented May 23, 2025

Wow thanks

for ((v, idx) <- arr.force.asArr.iterator.zipWithIndex) {
if (!v.isInstanceOf[Val.Num] || !v.asDouble.isWhole || v.asInt < 0 || v.asInt > 255) {
throw Error.fail(
f"Element $idx of the provided array was not an integer in range [0,255]"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's better to prints what it is

@He-Pin
Copy link
Contributor

He-Pin commented May 23, 2025

I found there are many tests in google/go-jsonnet too, imports which will help to find more potential small issues.

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