-
Notifications
You must be signed in to change notification settings - Fork 38.1k
test: consistently use BTC/kB and sat/B in wallet_basic test #20041
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
Conversation
f45b56b to
476675d
Compare
|
i just changed the commit title as suggested by fanquake. thanks! |
|
I assume this is intentional? To test that units are parsed in a case-insenstive manner? |
you are right. it was intentional by the author, but it doesn't work correctly IMHO. so i suggest to use consistently. 05227a3 Lines 22 to 23 in 1769828
what do you think? @kallewoof |
|
It's intentional, and it should work, so if it doesn't work, then I would prefer fixing it over changing the values. |
thanks to confirm! however in my case, after changed its still passing. it should be failure? |
|
Why should it be a failure? Any variant is allowed, including the ones you are using. You're just removing variants in the test cases. |
|
Agree with the other reviewers, these tests are intentional and the proposed change would reduce the coverage. |
i understood. thanks to make it clear! PR closing |
I was just remarking on the variety in capitalization in this test for the review of #20220. I think the change proposed by @decryp2kanon here would be great, if supplemented by an explicit test for the case insensitivity of the parameter value. |
I found some confused case sensitive in
BTC/kBandsat/B. It doesn't change the test result.before: 😕
after: 😄
reference:
bitcoin/src/policy/feerate.h
Lines 22 to 23 in 1769828
test result: