Skip to content

test(builtins): add spec tests for jq --arg/--argjson#925

Merged
chaliy merged 2 commits intomainfrom
feat/issue-914-jq-arg
Mar 31, 2026
Merged

test(builtins): add spec tests for jq --arg/--argjson#925
chaliy merged 2 commits intomainfrom
feat/issue-914-jq-arg

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 31, 2026

Summary

  • jq --arg and --argjson were already implemented with unit tests
  • Adds spec tests covering the exact issue examples: field assignment, numeric values, dynamic keys
  • Ensures the existing implementation has comprehensive coverage

Test plan

  • jq_arg_field_assignment.greeting = "Hello " + $name with <<<
  • jq_argjson_field_assignment.total = $count with numeric JSON
  • jq_arg_dynamic_key.[$key] = $val with multiple --arg
  • All existing jq tests pass

Closes #914

chaliy added 2 commits March 31, 2026 19:17
Add tests covering the exact examples from the issue: field assignment
with --arg, --argjson with numeric values, and dynamic key access with
--arg. The feature was already implemented; these tests ensure coverage.

Closes #914
@chaliy chaliy merged commit 1dd3e2b into main Mar 31, 2026
18 checks passed
@chaliy chaliy deleted the feat/issue-914-jq-arg branch March 31, 2026 21:25
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.

feat(builtins): implement jq --arg and --argjson flags

1 participant