Skip to content

test: define supported boundaries for IsPowerOfTwo (Issue #22) - #60

Open
9808Tarun wants to merge 1 commit into
S-AI-Projects:masterfrom
9808Tarun:student/e26b07f0633/R50-T022
Open

9808Tarun wants to merge 1 commit into
S-AI-Projects:masterfrom
9808Tarun:student/e26b07f0633/R50-T022

Conversation

@9808Tarun

Copy link
Copy Markdown

Description
Defined and verified the supported input boundaries and contract behavior for IsPowerOfTwo in Bit-Manipulation/IsPowerOfTwo.js, and created the required check runner script.

Related Issue
Fixes: #22

Type of Change

  • Bug Fix
  • New Feature
  • UI/UX Improvement
  • Performance Improvement
  • Tests
  • Documentation
  • Refactoring / Maintenance
  • CI/CD

Changes Made

  • Tested smallest valid input, boundary cases (0, negative integers, powers of two, non-powers of two), and ordinary inputs for IsPowerOfTwo in Bit-Manipulation/IsPowerOfTwo.js.
  • Added boundary and contract tests in Bit-Manipulation/test/IsPowerOfTwo.test.js.
  • Created work/R50-T022/check.py to execute the test suite in non-watch mode and capture test output, fixture results, and tool versions.

Screenshots / Recordings
N/A

Testing

  • Executed python3 work/R50-T022/check.py locally.
  • Verified test suite passes for Bit-Manipulation/test/IsPowerOfTwo.test.js.

Checklist

  • I have tested my changes locally.
  • I have added or updated tests, if needed.
  • I have updated documentation, if needed.
  • I have followed the project's coding guidelines.
  • I have run the relevant tests and checks.
  • I have addressed previous review feedback, if applicable.

Additional Notes
N/A

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.

Tarun Y — R50-T022: Define the supported boundaries of IsPowerOfTwo (IsPowerOfTwo.js) [Bit-Manipulation/IsPowerOfTwo.js]

1 participant