Skip to content

Conversation

@CHB-0r1s
Copy link
Contributor

@CHB-0r1s CHB-0r1s commented May 9, 2025

Add string methods as:

  • lower/upper
  • lstrip/rstrip
  • find/rfind
  • ljust/rjust
  • index/rindex
  • split/rsplit
  • removeprefix/removesuffix
  • partition/rpartition

CHB-0r1s added 2 commits May 10, 2025 00:11
…so in single responsibility reason in terms of this test, it will be much better to change upper() to title(), because title() not mutated
@CHB-0r1s
Copy link
Contributor Author

CHB-0r1s commented May 9, 2025

@boxed @Otto-AA
Now the pr is really about this issue
#297

@CHB-0r1s
Copy link
Contributor Author

CHB-0r1s commented May 9, 2025

If it necessary I can fix last test to cover .upper() test case too, but more indexes (such as x_capitalize__mutmut_1, x_capitalize__mutmut_2, ..., x_capitalize__mutmut_n) can increase test complexity

Copy link
Collaborator

@Otto-AA Otto-AA left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me!

I've only added some small remarks.

If it necessary I can fix last test to cover .upper() test case too, but more indexes (such as x_capitalize__mutmut_1, x_capitalize__mutmut_2, ..., x_capitalize__mutmut_n) can increase test complexity

No, your change is easier to read, let's leave it like that 👍

@boxed
Copy link
Owner

boxed commented May 10, 2025

Nice. @Otto-AA feel free to merge this when you are satisfied with it.

@Otto-AA Otto-AA merged commit e1110ff into boxed:main May 10, 2025
5 checks passed
@Otto-AA Otto-AA mentioned this pull request May 10, 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