rln-contract/test/PoseidonHasher.t.sol

19 lines
573 B
Solidity
Raw Normal View History

2023-03-29 06:58:42 +00:00
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
import "poseidon-solidity/PoseidonT3.sol";
2023-03-29 06:58:42 +00:00
import "forge-std/Test.sol";
contract PoseidonHasherTest is Test {
/// @dev Setup the testing environment.
function setUp() public {}
2023-03-29 06:58:42 +00:00
/// @dev Ensure that you can hash a value.
function testHasher() public {
assertEq(
PoseidonT3.hash([19014214495641488759237505126948346942972912379615652741039992445865937985820, 0]),
2023-11-29 06:46:28 +00:00
13164376930590487041313497514223288845711140604177161029957349518915056324115
2023-03-29 06:58:42 +00:00
);
}
}