Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
feat: new default funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Dec 11, 2021
1 parent eced6f9 commit eac8999
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
testFailSanity() (gas: 2068)
testSanity() (gas: 201)
testFunc2() (gas: 792)
testFunc1() (gas: 824)
6 changes: 5 additions & 1 deletion src/SampleContract.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.10;

contract SampleContract {}
contract SampleContract {
function func1(uint256 num) external {}

function func2(uint256 num) external {}
}
8 changes: 4 additions & 4 deletions src/test/SampleContract.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ contract SampleContractTest is DSTestPlus {
sampleContract = new SampleContract();
}

function testSanity() public {
assertTrue(true);
function testFunc1() public {
sampleContract.func1(1337);
}

function testFailSanity() public {
assertTrue(false);
function testFunc2() public {
sampleContract.func2(1337);
}
}

0 comments on commit eac8999

Please sign in to comment.