-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
Conversation
Codecov ReportAttention: Patch coverage is
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. |
src/test/java/com/thealgorithms/recursion/FibonacciSeriesTest.java
Outdated
Show resolved
Hide resolved
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)); |
There was a problem hiding this comment.
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
.
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 |
…java Co-authored-by: Piotr Idzik <[email protected]>
clang-format -i --style=file path/to/your/file.java