Conversation
|
I am not entirely sure the |
|
Hi @iMusicJJ, This revert and fixes the current test. But please take in account that when you leave out for example the postalcode and write a test for that it will fail with this code. This would fail because the code would return Therefor the #23 was noticed and the current 2.0 version was introduced. Leaving some scenarions unfixed. I will pick this up and fix it and extend the test some more. |
|
Oh and sorry, thanks for noticing and opening the PR and issue, efforts are much appreciated! 🙌 |
|
Alright. Can you add a failing test case please? Makes testing that there is no regression easier. It wasn't clear to me why the code was changed, as there was no failing tests. |
A Alas, if time is short, I'd like to continue the PR, so we can get the issue fixed.
Where does it fix the current test? I don't think I am touching any tests, except adding a new one? |
|
@jmslbam I have now added your failing test-case, and added a fix + confirmed it via the failing test. @adamlc Feel free to give this a once-over. It should be a fair bit more robust now in not leaving markers + spaces hanging. Once the fully formatted address is generated. It is dissected and trimmed on a line-by-line basis, and finally reassembled from the trimmed parts. Lastly all double-or-more spaces are replaced with a single space. |
|
@iMusicJJ thanks for your updates. I just ran the unit tests and it looks like they're failing with an invalid locale error. At a guess I would say it needs to be Otherwise I think the changes look good and will be hopefully more robust! |
|
Alright, I'll take a look at the pipeline and see |
|
Hey @adamlc, it should be fixed now. The issue was a case-sensitive filesystem, which my dev machine isn't. I've allowed both lowercase and uppercase locales now, so both |
|
Good work on the locale parsing. Although it looks like its now broken another test as the behaviour has changed 🤔 |
|
Still seems to fail. I'll take a look. Edit: just an outdated test, that seems to test that lowercase locales were not allowed. I'll change it to test a non existent locale instead |
|
Nvm, there was a Can you try again? |
|
I have moved |
|
Looks great thanks, will create a release now |
|
Thanks, and thank you for the swift responses! |
This fixes the issue introduced in #24, discussed in #26 with hanging %S markers.
A failing test was added, and subsequently fixed