// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.8.13;
|
|
|
|
import "forge-std/Test.sol";
|
|
import {Poseidon, Poseidon2, Poseidon3} from "../src/Poseidon.sol";
|
|
|
|
contract PoseidonTest is Test {
|
|
Poseidon2 poseidon2;
|
|
|
|
function setUp() public {
|
|
poseidon2 = new Poseidon().poseidon2();
|
|
}
|
|
|
|
function testPoseidon2() public {
|
|
assertEq(poseidon2.poseidon([uint256(1), uint256(2)]), 7853200120776062878684798364095072458815029376092732009249414926327459813530);
|
|
}
|
|
}
|