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

Add 'd' 64-bit floating point number type tag #67

Merged
merged 3 commits into from
Jun 10, 2018

Conversation

levaitamas
Copy link
Contributor

Fixes #55, refs #42.
Comments welcome.

p.s. Any plans for bumping version number?

dgram[start_index:start_index + _DOUBLE_DGRAM_LEN])[0],
start_index + _DOUBLE_DGRAM_LEN)
except (struct.error, TypeError) as e:
raise ParseError('Could not parse datagram %s' % e)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use raise ParseError('Could not parse datagram {}'.format(e))
for consistency


def test_get_double(self):
cases = {
b'\x00\x00\x00\x00\x00\x00\x00\x00': (0.0, 8),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add negative number test case please

@attwad
Copy link
Owner

attwad commented Jun 10, 2018

Thanks for the PR! Will bump the minor version number after this is merged.

@attwad
Copy link
Owner

attwad commented Jun 10, 2018

Thanks!

@attwad attwad merged commit 0432606 into attwad:master Jun 10, 2018
@levaitamas levaitamas deleted the double branch June 10, 2018 20:23
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