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

refactor: port cucumber tests to rs #5051

Merged
merged 282 commits into from
Jan 21, 2023
Merged

Conversation

brianp
Copy link
Contributor

@brianp brianp commented Dec 14, 2022

Description

This is a Base feature branch that all additional work on the implementation will be merged into, before being merged into development.

Motivation and Context

Removing the JS dependencies in favor of a pure rust implementation

Related

Toolchain upgrade:
tari-labs/docker#23
tari-project/action-buildlibs#10

How Has This Been Tested?

CI

Closes: #5050

@CjS77 CjS77 added CR-too_long Changes Requested - Your PR is too long P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Dec 15, 2022
@@ -136,7 +136,7 @@ impl EmissionSchedule {
let mut carry_last = 0u8;
for i in 0..len {
let index = len - 1 - i;
let carry = if num[index] >= 5 { 1 } else { 0 };
let carry = (num[index] >= 5).into();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a fan of this. I think a clippy allow would be clearer

@@ -224,8 +224,8 @@ pub fn create_merkle_proof(hashes: &[Hash], hash: &Hash) -> Option<MerkleProof>
if h != hash {
return None;
}
let i = if pos == 0 { 1 } else { 0 };
MerkleProof::try_construct(vec![hashes[i]], 1, if pos == 0 { 0 } else { 1 })
let i = usize::from(pos == 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also not a fan here

@stringhandler stringhandler merged commit 5f7f04b into development Jan 21, 2023
@stringhandler stringhandler deleted the feature-cucumber-rs branch February 14, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CR-too_long Changes Requested - Your PR is too long mq-failed P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert Cucumber tests
6 participants