Skip to content

Commit

Permalink
Fix incorrect expectation in test + appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjort committed Aug 28, 2023
1 parent 229e35b commit 8f6f010
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/common/test/web3IdHelpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ test('isStringAttributeInRange handles value === lower correctly', () => {

test('isStringAttributeInRange handles value === upper correctly', () => {
expect(isStringAttributeInRange('2', '1', '2')).toBeFalsy();
expect(isStringAttributeInRange('299910', '199910', '299910')).toBeTruthy();
expect(isStringAttributeInRange('299910', '199910', '299910')).toBeFalsy();
});
2 changes: 1 addition & 1 deletion packages/rust-bindings/src/aux_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,5 +1032,5 @@ pub fn compare_string_attributes_aux(
) -> core::cmp::Ordering {
let e1 = Web3IdAttribute::String(AttributeKind(attribute1)).to_field_element();
let e2 = Web3IdAttribute::String(AttributeKind(attribute2)).to_field_element();
return e1.cmp(&e2).into();
e1.cmp(&e2)
}

0 comments on commit 8f6f010

Please sign in to comment.