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

test(uniqWith): Add test cases for uniqWith #36

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

jaehunn
Copy link
Contributor

@jaehunn jaehunn commented Jun 12, 2024

The @example was incorrect and fixed it.

comparator function, if false is returned then add element.

first iter

  • a: X
  • b: 1.2
    -> 1.2 < 1 = false, added 1.2

second iter

  • a: 1.2
  • b: 1.5
    -> 0.3 < 1 = true, not added

third iter

  • a: 1.2
  • b: 2.1
    -> 0.9 < 1 = true, not added

fourth iter

  • a: 1.2
  • b: 3.2
    -> 2.0 < 1 = false, added 3.2

fifth iter

  • a: 3.2
  • b: 5.7
    -> 2.5 < 1 = false, added 5.7

sixth iter

  • a: 5.7
  • b: 5.3
    -> 0.4 < 1 = true, not added

seventh iter

  • a: 5.7
  • b: 7.19
    -> 1.49 < 1 = false, added 7.19

answer: [1.2, 3.2, 5.7, 7.19]

Copy link

vercel bot commented Jun 12, 2024

@jaehunn is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@raon0211 raon0211 changed the title fix(uniqWith): Add test cases for uniqWith test(uniqWith): Add test cases for uniqWith Jun 13, 2024
@raon0211
Copy link
Collaborator

Thanks, @jaehunn !

@raon0211 raon0211 merged commit dd56996 into toss:main Jun 13, 2024
5 of 6 checks passed
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.

None yet

2 participants