Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Test_parse_rgb_number #8

Merged
merged 13 commits into from
Jun 17, 2024
Merged

Test_parse_rgb_number #8

merged 13 commits into from
Jun 17, 2024

Conversation

FrankLawrence
Copy link
Collaborator

Summary

Added coverage for parse_rgb_number()

README.md Outdated
@@ -81,6 +89,18 @@ test\_\_human_join
The coverage improvement is +100%.
The coverage has been improved, because `_human_join` used to not be tested, while the new `test__human_join` considers every branch to be taken.

#### Frank

tests\test_colour.py
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe change this to test_from_str_failures for consistency?

README.md Outdated

\_human_join

[commit](https://github.com/tthijm/sep/commit/88c98ebc05c4d67bcdce7d3046ffa786f79b9284)

![](./assets/_human_join_custom.png)

#### Frank

\parse_rgb_number
Copy link
Owner

Choose a reason for hiding this comment

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

The "\" should not be here.

@tthijm tthijm self-requested a review June 13, 2024 17:17
README.md Outdated

![](./assets/parse_rgb_number_after.png)

The coverage of the function has improved from the originaly 60% to 100%, since the other two branches (1 and 3) were also covered.
Copy link
Owner

Choose a reason for hiding this comment

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

The original coverage should be taken from coverage which was 78%.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks

@tthijm tthijm self-requested a review June 14, 2024 08:50
README.md Outdated Show resolved Hide resolved
Co-authored-by: tthijm <[email protected]>
tthijm
tthijm previously approved these changes Jun 15, 2024
@FrankLawrence FrankLawrence merged commit 32686fe into master Jun 17, 2024
8 checks passed
@FrankLawrence FrankLawrence deleted the feat-1 branch June 18, 2024 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants