Skip to content

test: add Fibonacci matrix exponentiation tests - #7719

Merged
DenizAltunkapan merged 3 commits into
TheAlgorithms:masterfrom
NanditaMazz:add-tests-matrix-fibonacci
Nov 3, 2026
Merged

DenizAltunkapan merged 3 commits into
TheAlgorithms:masterfrom
NanditaMazz:add-tests-matrix-fibonacci

Conversation

@NanditaMazz

Copy link
Copy Markdown
Contributor

Description

Added unit tests for the Fibonacci matrix exponentiation implementation.

Test cases

  • Fibonacci of 0 (identity matrix)
  • Fibonacci of 1
  • Even input (2)
  • Odd input (3)
  • Fibonacci of 10
  • Large input (50)

Testing

  • mvn -Dtest=FibonacciTest test — BUILD SUCCESS
Screenshot 2026-10-31 004424
  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new algorithms include a corresponding test class that validates their functionality.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter

codecov-commenter commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.27%. Comparing base (6edd2d8) to head (7946373).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7719      +/-   ##
============================================
+ Coverage     82.23%   82.27%   +0.04%     
- Complexity     8405     8409       +4     
============================================
  Files           843      843              
  Lines         26140    26140              
  Branches       5100     5100              
============================================
+ Hits          21495    21506      +11     
+ Misses         3854     3843      -11     
  Partials        791      791              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DenizAltunkapan DenizAltunkapan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NanditaMazz thanks! very helpful.

@DenizAltunkapan
DenizAltunkapan enabled auto-merge (squash) November 3, 2026 12:18
@DenizAltunkapan
DenizAltunkapan merged commit 36e6d66 into TheAlgorithms:master Nov 3, 2026
13 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.

3 participants