-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Shared.Tests - Add Tests #708
Conversation
The values seem to be correct: these cultures don't have currency sign (that probably explains space at the end) and $ as decimal separator. |
Those are the expected values. Currently those tests fail. |
Ah okay, got it. Let's see... |
Assert.Equal() Failure Wasn't sure what the best way to solve it is, so I didnt touch the method itself |
TODO:
Not sure of the best way to do either of them at the moment. |
I'll make the workflow for this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we fixing the method separately? This one just makes the test pass but doesn't actually fix the problem 🤔 (about the tests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#708 (review)
I meant to leave that comment here. AAh that did the same thing 🤦
Meant to comment on Fyodor's commits
@JoseBritto let me sumarize info about problematic cultures to ensure I don't miss anything:
If all this is correct, I have a fix for the method itself, but the tests are complaining about symbol in the end (I see from errors reports that other than that the values are correct) |
Yes. I didn't actually care to check what the currency symbol was actually returning, assumed it was $ as that is what google told me and got confused when I got the invisible character at the end 🤦 |
Just noticed 1.2 was becoming 1$2 in AllCulturesShouldWorkWithOverwriteDecimal test, fixed actual value in latest commit. |
Just one test left, this time it fails with mm-Mong-MN culture:
No idea why 🤔 |
Didn't have to revert. I'm bad at git lol. Anyway, now it should look better than the mess I made yesterday |
LGTM! Any remaining issues? |
Not that I know of. I'll wait for @fsobolev just in case |
This reverts commit 50ecfdc.
The tests are still giving errors for escudo
Adds 0 in the end if required
Ouch, I didn't know rebase adds person who make a rebase as co-author (at least when using Github Desktop), I hope nobody minds |
8384f0a
to
bbd9290
Compare
I don't mind lol. This should now be good to merge right? |
Yes, I can't merge because I'm the last pusher |
LGTM |
Thanks for implementing the "kea-CV" and "pt-CV", I was here to check something related to this, but seen you've already implemented it, so thanks again. |
Tests added for CurrencyHelpers to make sure it works with all cultures.
I hardcoded some values because in the tests we know exactly what values go into the test methods and what the expected output is.
Currently all tests are passing except "kea-CV" and "pt-CV". These cultures have $ in the middle of the number:
$1.00 -> 1$00
$2.05 -> 2$05
Also for some reason they also have a zero width space at the end of the number.