Skip to content

test: add parityOutlier invariant test for Issue #24 - #62

Open
9808Tarun wants to merge 2 commits into
S-AI-Projects:masterfrom
9808Tarun:student/e26b07f0633/R50-T024
Open

9808Tarun wants to merge 2 commits into
S-AI-Projects:masterfrom
9808Tarun:student/e26b07f0633/R50-T024

Conversation

@9808Tarun

Copy link
Copy Markdown

Description
Added invariant property tests and contract checks for parityOutlier in Maths/ParityOutlier.js, and created the required check runner script.

Related Issue
Fixes: #24

Type of Change

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

Changes Made

  • Tested smallest valid input ([1, 2]) and ordinary input ([1, 2, 16, -8848, 5126]), referencing precondition source line 9 of Maths/ParityOutlier.js.
  • Implemented a 100-case seeded property generator in Maths/test/ParityOutlier.test.js to verify parity outlier invariants and array non-mutation.
  • Created work/R50-T024/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-T024/check.py locally.
  • Verified test suite passes for Maths/test/ParityOutlier.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-T024: Test an invariant of parityOutlier (ParityOutlier.js) [Maths/ParityOutlier.js]

1 participant