You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
494 B

// 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);
}
}