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

fix: Handle offset values #40

Merged
merged 5 commits into from
Jan 16, 2019
Merged

fix: Handle offset values #40

merged 5 commits into from
Jan 16, 2019

Conversation

webmasterkai
Copy link
Contributor

I noticed a issue with the info related to PGN 65026. canboat/canboat#145

The test file in this project was modified from the original feed.

original: 2016-02-28T19:57:02.826Z,3,65026,196,255,8,42,96,35,77,83,96,35,77
65026.js: 2016-02-28T19:57:02.826Z,3,65026,196,255,8,42,96,35,77,ff,ff,ff,ff

I updated the test to contain the correct hex values and included two more examples. I had to adjust the test script to handle multiple tests for a single PGN.

Lastly I uncommented the offset handling code to get the correct values. Was there a reason the offset code was commented out? In this very specific example it works as expected.

@webmasterkai
Copy link
Contributor Author

The changes to test.js are to enable multiple tests for each pgn.

@sbender9
Copy link
Member

I’m trying to figure out why I commented that out...

@webmasterkai
Copy link
Contributor Author

If it results in a problem I promise to help write the failing tests and then fix the code so they pass.
:-D

Without this, the test for 65026 fails when updated with real data. No other test fails after the update.

@sbender9 sbender9 merged commit 4acb9f9 into canboat:master Jan 16, 2019
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.

2 participants