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

Context 0.1: Implementation of varnum reading #430

Merged
merged 2 commits into from
Sep 4, 2019

Conversation

Yoric
Copy link
Collaborator

@Yoric Yoric commented Sep 2, 2019

Ok, let's get porting context 0.1 to Rust started!

@Yoric Yoric requested a review from dominiccooney September 2, 2019 15:53
@Yoric Yoric force-pushed the context-0.1 branch 2 times, most recently from 588b121 to a69d2d4 Compare September 2, 2019 16:23
In this implementation, we rename `varnum` to `varu32`.
Copy link
Member

@dominiccooney dominiccooney left a comment

Choose a reason for hiding this comment

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

Looks good, nice tests. Suggestion inline for a couple more cases to test.

// Various versions of 0
(vec![0], 0),
(vec![0b10000000, 0b00000000], 0),
(vec![0b10000000, 0b10000000, 0b00000000], 0),
Copy link
Member

Choose a reason for hiding this comment

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

Maybe also test a couple of multi-length, denormalized non-zero values?

Copy link
Member

Choose a reason for hiding this comment

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

Looks like Travis is complaining about cargo fmt.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Which values do you have in mind?

@Yoric
Copy link
Collaborator Author

Yoric commented Sep 4, 2019

(fixing cargo fmt)

@Yoric Yoric merged commit 16144be into binast:master Sep 4, 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