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

feat(sdk): adding std.Map tests #4336

Merged
merged 6 commits into from
Oct 2, 2023
Merged

feat(sdk): adding std.Map tests #4336

merged 6 commits into from
Oct 2, 2023

Conversation

WeepingClown13
Copy link
Collaborator

@WeepingClown13 WeepingClown13 commented Sep 29, 2023

This is the first time I am writing tests, so admittedly my tests are not that versatile. But as I also believe that std tests should be straightforward, I do not totally mind it. Since keys() and values() methods of maps seems to return an array that fails to assert "is the same as another array of same elements" (which seems to be a bug), I had to iterate over the array values and confirm it works as expected.

closes: #4363

Checklist

  • Title matches Winglang's style guide
  • Description explains motivation and solution
  • Tests added (always)
  • Docs updated (only required for features)
  • Added pr/e2e-full label if this feature requires end-to-end testing

By submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.

Copy link
Collaborator

@tsuf239 tsuf239 left a comment

Choose a reason for hiding this comment

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

Awesome work! super thorough work 👏 👏

examples/tests/sdk_tests/std/map.test.w Show resolved Hide resolved
examples/tests/sdk_tests/std/map.test.w Show resolved Hide resolved
examples/tests/sdk_tests/std/map.test.w Outdated Show resolved Hide resolved
@revitalbarletz
Copy link
Contributor

@tsuf239 can you approve if you think it is ready?

@revitalbarletz
Copy link
Contributor

@WeepingClown13 great work!!!

Copy link
Collaborator

@tsuf239 tsuf239 left a comment

Choose a reason for hiding this comment

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

all passed, great job!
Uploading image.png…

@mergify
Copy link
Contributor

mergify bot commented Oct 2, 2023

Thanks for contributing, @WeepingClown13! This PR will now be added to the merge queue, or immediately merged if acv/maptests is up-to-date with main and the queue is empty.

mergify bot added a commit that referenced this pull request Oct 2, 2023
@WeepingClown13
Copy link
Collaborator Author

Oh thanks. I just added another commit to add a comment about the mentioned bug and finished building it but sure😂

@mergify mergify bot merged commit 41fabd5 into main Oct 2, 2023
16 checks passed
@mergify mergify bot deleted the acv/maptests branch October 2, 2023 11:18
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.34.8.

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.

map std tests
4 participants