Skip to content

test: fix square_root.test.ts#229

Merged
raklaptudirm merged 1 commit into
TheAlgorithms:masterfrom
vil02:cleanup_square_root_test
Feb 14, 2024
Merged

test: fix square_root.test.ts#229
raklaptudirm merged 1 commit into
TheAlgorithms:masterfrom
vil02:cleanup_square_root_test

Conversation

@vil02

@vil02 vil02 commented Feb 11, 2024

Copy link
Copy Markdown
Member

There is something strange with square_root.test.ts. This PR fixes that.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4f6cd6c) 96.32% compared to head (b65de75) 96.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #229      +/-   ##
==========================================
+ Coverage   96.32%   96.71%   +0.38%     
==========================================
  Files          97       97              
  Lines        1797     1797              
  Branches      347      347              
==========================================
+ Hits         1731     1738       +7     
+ Misses         66       59       -7     

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

@vil02 vil02 marked this pull request as ready for review February 11, 2024 10:53

@appgurueu appgurueu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks. Yep, this fixes the tests, hence increasing the coverage. Before, they just created closures that were never called. We should probably introduce a linter to catch mistakes such as this one.

@appgurueu appgurueu changed the title test: cleanup square_root.test.ts test: fix square_root.test.ts Feb 11, 2024
@raklaptudirm raklaptudirm merged commit 24cbb3b into TheAlgorithms:master Feb 14, 2024
@vil02 vil02 deleted the cleanup_square_root_test branch February 14, 2024 16:08
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.

4 participants