Skip to content

Commit

Permalink
refactor(bitwise.unit-test): fix rotate and shift tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov committed Nov 1, 2023
1 parent 509da0d commit f978ede
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/gadgets/bitwise.unit-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ await Bitwise.compile();
(x, y) => x & y,
(x, y) => Gadgets.and(x, y, length)
);
});

[2, 4, 8, 16, 32, 64].forEach((length) => {
equivalent({ from: [uint(length)], to: field })(
(x) => Fp.rot(x, 12, 'left'),
(x) => Gadgets.rotate(x, 12, 'left')
Expand Down

0 comments on commit f978ede

Please sign in to comment.