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

MQL fails to print failing containsOnly entries inside of blocks #5226

Open
arlimus opened this issue Feb 14, 2025 · 0 comments
Open

MQL fails to print failing containsOnly entries inside of blocks #5226

arlimus opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels

Comments

@arlimus
Copy link
Member

arlimus commented Feb 14, 2025

Without the block:

> [1,2,3].containsOnly([1,2])
[failed] [].containsOnly()
  expected: == []
  actual:   [
    0: 3
  ]

Within a block:

> mondoo { [1,2,3].containsOnly([1,2]) }
mondoo: {
  [].containsOnly(): false
}

Analysis shows the AST is basically identical, i.e. this is not a code expansion issue but a printing issue.

as reported by @scottford-io

@arlimus arlimus self-assigned this Feb 14, 2025
@arlimus arlimus added the mql label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant