Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a few tests for the FibonacciSeries recursive algorithm #6124

Closed
wants to merge 3 commits into from

Conversation

BILLSARAN
Copy link
Contributor

  • 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 code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link

codecov-commenter commented Jan 11, 2025

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Project coverage is 73.72%. Comparing base (1e6ed97) to head (cb48a7b).

Files with missing lines Patch % Lines
...va/com/thealgorithms/maths/GoldbachConjecture.java 0.00% 18 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6124      +/-   ##
============================================
- Coverage     73.78%   73.72%   -0.07%     
  Complexity     5119     5119              
============================================
  Files           658      659       +1     
  Lines         17632    17650      +18     
  Branches       3391     3397       +6     
============================================
+ Hits          13010    13012       +2     
- Misses         4118     4135      +17     
+ Partials        504      503       -1     

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

Comment on lines 24 to +30
assertEquals(144, FibonacciSeries.fibonacci(12));
assertEquals(233, FibonacciSeries.fibonacci(13));
assertEquals(377, FibonacciSeries.fibonacci(14));
assertEquals(610, FibonacciSeries.fibonacci(15));
assertEquals(6765, FibonacciSeries.fibonacci(20));
assertEquals(75025, FibonacciSeries.fibonacci(25));
assertEquals(832040, FibonacciSeries.fibonacci(30));
Copy link
Member

Choose a reason for hiding this comment

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

I think we reached the point when one should express these are parametrized tests. Perhaps even for all Fibonacci sequence implementations. An example to look at is NumberOfDigitsTest.java.

@vil02
Copy link
Member

vil02 commented Jan 11, 2025

2899fbc - please split this into another pull-request!

@BILLSARAN
Copy link
Contributor Author

2899fbc - please split this into another pull-request!

I'm just starting in open source, I would really appreciate it if you could show me how to split into another pull request because I'm kinda lost xD

@BILLSARAN BILLSARAN requested a review from vil02 January 11, 2025 17:28
@BILLSARAN BILLSARAN closed this Jan 11, 2025
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