Repository navigation
refactor(maths): simplify state variables in lucas recurrence (R50-T046) - #94
Open
aniruddha-bongale wants to merge 1 commit into
Open
aniruddha-bongale wants to merge 1 commit into
aniruddha-bongale wants to merge 1 commit into
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Refactor state variables in
Maths/LucasSeries.jsto simplify the Lucas recurrence state representation (currentandnext), add comprehensive unit tests inMaths/test/LucasSeries.test.js, and provide an automated check runnerwork/R50-T046/check.pysaving execution results towork/R50-T046/results.json.Related Issue
Fixes: #46
Type of Change
Changes Made
Maths/LucasSeries.jsiterative state tracking to use descriptive variable names (current,next) and added JSDoc documentation citing original line numbers.Maths/test/LucasSeries.test.jscovering index 0, index 1, small terms (n=2..10), larger terms (n=20), negative index handling, and non-integer inputs.work/R50-T046/check.pyto run vitest non-interactively, verify assertions, and write tool versions and execution status towork/R50-T046/results.json.Screenshots / Recordings
All 10 unit tests for
LucasSeriespassed cleanly. All repo test suites pass.Testing
npx vitest run Maths/test/LucasSeries.test.js- all tests passed.python3 work/R50-T046/check.py- produced validwork/R50-T046/results.json.npx prettier --check.Checklist
Additional Notes
Student: Aniruddha Bongale (Enrollment: E26B07F0827)
Task ID: R50-T046