-
Notifications
You must be signed in to change notification settings - Fork 143
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
Update golden test files after commits 2f9fa5c, 23d8ee4 #164
Conversation
It seems it was forgotten, and the automatic tests did not fail on it. 2f9fa5c Implement negative BCD number (Type A)
It does look correct, but I did not have a deeper look into it. |
In this pull request, I have updated the golden files so they match the current state of master, which has already been reviewed. What is the process in order to get this merged? |
I will take care of the review. The whole problem is that we don't have "golden" test files, otherwise they don't need to be updated. I prefer to make sure that BCD decoding is correct, before updating the test files / pull this request. |
@lategoodbye : What I have done is executed the code on the current master, and update the files in the repo so they don't give any difference. (The reason that I have two commits is that I created my commit 04eeda3 before 23d8ee4 was merged). I used the term golden files to refer to generated the .xml files that we do check in to the repository. In the case of BCD encoding/decoding, it would be better to have normal unit tests, but that is some more work. |
@lategoodbye: In my next pull request: #165, Making sure that one cannot updated the code without updating the generated .xml-files at the same time. |
Any new regarding any of my three pull requests (164, 165, 166)? |
@fredrik-sk Sorry, but during summertime the libmbus doesn't have high prio for me. For me 2f9fa5c is broken. So we better find a compromise which means the old behavior plus signed BCD handling. After that the diff should be much understable. |
This seems to have been fixed by #167 |
It seems it was forgotten to update the test file used by the, and the automatic tests did not fail on it.
2f9fa5c Implement negative BCD number (Type A)
23d8ee4 Added more medium definitions according to DIN EN 13757-7:2018-06 (#162) [UPDATED]
Another problem is that the automatic tests did not give an error on this, I have updates for that as well.