Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@flatland001
Copy link
Contributor

@flatland001 flatland001 commented Feb 7, 2024

GitHub: fix GH-110

Fixed a bug in REXML::Functions.normalize_space(array) and introduced test cases for it:

  • Corrected a typo in the variable name within the collect block (string -> x).
  • Added test_normalize_space_strings to test/functions/test_base.rb.

Replaced the variable 'string' with 'x' inside the collect block.
…y#110

to validate `REXML::Functions::normalize_space()` functionality
Renamed test_normalize_space2 for better clarity and updated tests to use Array of String for expected data. ruby#110

Co-authored-by: Sutou Kouhei <[email protected]>
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

Could you update the PR description before we merge this? We'll use the PR title and description for commit message.

@flatland001
Copy link
Contributor Author

My apologies for the oversight! Thank you for pointing that out. I've made a slight adjustment to the PR description. Does this look alright to you?

@kou kou changed the title Fix functions normalize space #110 Fix normalize_space(array) case Feb 8, 2024
@kou kou changed the title Fix normalize_space(array) case xpath: Fix normalize_space(array) case Feb 8, 2024
@kou kou merged commit 444c9ce into ruby:master Feb 8, 2024
@kou
Copy link
Member

kou commented Feb 8, 2024

Thanks. I've updated a bit and merged.

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.

Potential Typo in REXML::Functions::normalize_space() Implementation

2 participants