Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
e576063d
Commit
e576063d
authored
Jun 21, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix alignment
parent
47b1e3ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
LibPosition.t.sol
packages/contracts-bedrock/contracts/test/LibPosition.t.sol
+3
-3
No files found.
packages/contracts-bedrock/contracts/test/LibPosition.t.sol
View file @
e576063d
...
@@ -100,7 +100,7 @@ contract LibPosition_Test is Test {
...
@@ -100,7 +100,7 @@ contract LibPosition_Test is Test {
}
}
/// @notice Tests that the `attack` function correctly computes the position of the attack relative to
/// @notice Tests that the `attack` function correctly computes the position of the attack relative to
/// a given position.
///
a given position.
/// @dev `attack` is an alias for `left`, but we test it separately for completeness.
/// @dev `attack` is an alias for `left`, but we test it separately for completeness.
function testFuzz_attack_correctness_suceeds(uint8 _depth, uint64 _indexAtDepth) public {
function testFuzz_attack_correctness_suceeds(uint8 _depth, uint64 _indexAtDepth) public {
// Depth bound: [0, 63]
// Depth bound: [0, 63]
...
@@ -115,9 +115,9 @@ contract LibPosition_Test is Test {
...
@@ -115,9 +115,9 @@ contract LibPosition_Test is Test {
}
}
/// @notice Tests that the `defend` function correctly computes the position of the defense relative to
/// @notice Tests that the `defend` function correctly computes the position of the defense relative to
/// a given position.
///
a given position.
/// @dev A defense can only be given if the position does not belong to the root claim, hence the bound of [1, 127]
/// @dev A defense can only be given if the position does not belong to the root claim, hence the bound of [1, 127]
/// on the depth.
///
on the depth.
function testFuzz_defend_correctness_suceeds(uint8 _depth, uint64 _indexAtDepth) public {
function testFuzz_defend_correctness_suceeds(uint8 _depth, uint64 _indexAtDepth) public {
// Depth bound: [1, 63]
// Depth bound: [1, 63]
_depth = uint8(bound(_depth, 1, MAX_DEPTH));
_depth = uint8(bound(_depth, 1, MAX_DEPTH));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment