-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3991e37
commit 1d83b51
Showing
15 changed files
with
162 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.0; | ||
|
||
contract HashPairTestSanitize { | ||
function test_ShouldNeverRevert() external { | ||
// It should never revert. | ||
} | ||
|
||
function test_WhenFirstArgIsSmallerThanSecondArg() external whenFirstArgIsSmallerThanSecondArg { | ||
// It should match the result of `keccak256(abi.encodePacked(a,b))`. | ||
} | ||
|
||
function test_WhenFirstArgIsZero() external whenFirstArgIsSmallerThanSecondArg { | ||
// It should do something. | ||
} | ||
|
||
function test_WhenFirstArgIsBiggerThanSecondArg() external { | ||
// It should match the result of `keccak256(abi.encodePacked(b,a))`. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
HashPairTest.Sanitize | ||
├── It should never revert. | ||
├── When first arg is smaller than second arg | ||
│ ├── When first arg is zero | ||
│ │ └── It should do something. | ||
│ └── It should match the result of `keccak256(abi.encodePacked(a,b))`. | ||
└── When first arg is bigger than second arg | ||
└── It should match the result of `keccak256(abi.encodePacked(b,a))`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.0; | ||
|
||
contract HashPairTestSanitize { | ||
function test_ShouldNeverRevert() external { | ||
// It should never revert. | ||
} | ||
|
||
function test_WhenFirstArgIsSmallerThanSecondArg() external whenFirstArgIsSmallerThanSecondArg { | ||
// It should match the result of `keccak256(abi.encodePacked(a,b))`. | ||
} | ||
|
||
function test_WhenFirstArgIsZero() external whenFirstArgIsSmallerThanSecondArg { | ||
// It should do something. | ||
} | ||
|
||
function test_WhenFirstArgIsBiggerThanSecondArg() external { | ||
// It should match the result of `keccak256(abi.encodePacked(b,a))`. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
HashPairTest.Sanitize | ||
├── It should never revert. | ||
├── When first arg is smaller than second arg | ||
│ ├── When first arg is zero | ||
│ │ └── It should do something. | ||
│ └── It should match the result of `keccak256(abi.encodePacked(a,b))`. | ||
└── When first arg is bigger than second arg | ||
└── It should match the result of `keccak256(abi.encodePacked(b,a))`. |