Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenSwen committed Mar 28, 2023
1 parent cdb7292 commit 3b013e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/contracts/StringUtil.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,25 +93,25 @@ describe('StringUtil', function () {
it('Single byte naive', () => testGasNaiveBytes(singleByte, 988));

async function testGasUint256(value: string, expectedGas: number) {
if (!hre.__SOLIDITY_COVERAGE_RUNNING) return;
if (hre.__SOLIDITY_COVERAGE_RUNNING) return;
const { stringUtilTest } = await loadFixture(deployStringUtilTest);
await stringUtilTest.toHex(value, expectedGas);
}

async function testGasBytes(value: string, expectedGas: number) {
if (!hre.__SOLIDITY_COVERAGE_RUNNING) return;
if (hre.__SOLIDITY_COVERAGE_RUNNING) return;
const { stringUtilTest } = await loadFixture(deployStringUtilTest);
await stringUtilTest.toHexBytes(value, expectedGas);
}

async function testGasNaiveUint256(value: string, expectedGas: number) {
if (!hre.__SOLIDITY_COVERAGE_RUNNING) return;
if (hre.__SOLIDITY_COVERAGE_RUNNING) return;
const { stringUtilTest } = await loadFixture(deployStringUtilTest);
await stringUtilTest.toHexNaive(value, expectedGas);
}

async function testGasNaiveBytes(value: string, expectedGas: number) {
if (!hre.__SOLIDITY_COVERAGE_RUNNING) return;
if (hre.__SOLIDITY_COVERAGE_RUNNING) return;
const { stringUtilTest } = await loadFixture(deployStringUtilTest);
await stringUtilTest.toHexNaiveBytes(value, expectedGas);
}
Expand Down

0 comments on commit 3b013e5

Please sign in to comment.