Skip to content
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

Fixed a bug when decoding a key with one character only #96

Merged
merged 2 commits into from May 2, 2019

Conversation

flowbe
Copy link
Contributor

@flowbe flowbe commented May 2, 2019

I found an issue with the convertFromCapitalized key decoding strategy which threw an error when the key had just one characted. This PR should fix the issue.

@codecov
Copy link

codecov bot commented May 2, 2019

Codecov Report

Merging #96 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #96      +/-   ##
==========================================
- Coverage   77.05%   77.04%   -0.02%     
==========================================
  Files          38       38              
  Lines        2114     2113       -1     
==========================================
- Hits         1629     1628       -1     
  Misses        485      485
Impacted Files Coverage Δ
Sources/XMLCoder/Decoder/XMLDecoder.swift 82.73% <100%> (-0.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0732b82...538a545. Read the comment docs.

@MaxDesiatov MaxDesiatov self-assigned this May 2, 2019
@MaxDesiatov MaxDesiatov merged commit 87b8f38 into CoreOffice:master May 2, 2019
@MaxDesiatov
Copy link
Collaborator

Thank you @TheFlow95, great catch! I've also added a test that reproduces the issue.

arjungupta0107 pushed a commit to salido/XMLCoder that referenced this pull request Jun 26, 2020
I found an issue with the `convertFromCapitalized` key decoding strategy which threw an error when the key had just one characted.

* Fix a bug when decoding a key with one character only
* Add KeyDecodingStrategyTest
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.

None yet

2 participants