code-chronicles-code / code-chronicles-code/leetcode-curriculum

Add tests for `swap` utility

Open Beginner friendly
#313 0 comments 0 reactions 0 assignees View on GitHub
good first issue tests
Dominant language
TypeScript
Stars
20
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Add a file `workspaces/util/src/__tests__/swap-test.ts`, for testing the `swap` utility.

To see some PRs that add tests, take a look at #288 and #290 for inspiration.

Contributor guide

Open the contributing guide

Research direction

Create workspaces/util/src/__tests__/swap-test.ts and first review the existing swap utility and the test additions in issues #288 and #290 for project conventions. Add coverage that verifies the utility's behavior, then run the relevant workspace test command and confirm the new tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.