poseidon-solidity-example/test/keccak256.t.sol
test/keccak256.t.solRaw
1// SPDX-License-Identifier: UNLICENSED
2pragma solidity ^0.8.13;
3
4import "forge-std/Test.sol";
5import {Keccak256} from "../src/keccak256.sol";
6
7contract Keccak256Test is Test {
8 Keccak256 keccak256hash;
9
10 function testKeccak256() public {
11 // assertEq(keccak256hash.hash("asdf"), 7853200120776062878684798364095072458815029376092732009249414926327459813530);
12 keccak256(abi.encodePacked(uint256(1)));
13 }
14}