-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use "given" instead of "when" (#678)
* test: use "given" instead of "when" * test: correct "given" branches --------- Co-authored-by: andreivladbrg <[email protected]>
- Loading branch information
1 parent
d7ea52b
commit 98d8fa0
Showing
15 changed files
with
39 additions
and
39 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
10 changes: 5 additions & 5 deletions
10
test/integration/concrete/lockup-dynamic/streamed-amount-of/streamedAmountOf.tree
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
streamedAmountOf.t.sol | ||
└── given the stream's status is "STREAMING" | ||
├── when the start time is in the future | ||
├── given the start time is in the future | ||
│ └── it should return zero | ||
├── when the start time is in the present | ||
├── given the start time is in the present | ||
│ └── it should return zero | ||
└── when the start time is in the past | ||
└── given the start time is in the past | ||
├── given there is one segment | ||
│ └── it should return the correct streamed amount | ||
└── given there are multiple segments | ||
├── when the current milestone is the 1st in the array | ||
├── given the current milestone is the 1st in the array | ||
│ └── it should return the correct streamed amount | ||
└── when the current milestone is not the 1st in the array | ||
└── given the current milestone is not the 1st in the array | ||
└── it should return the correct streamed amount |
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
4 changes: 2 additions & 2 deletions
4
test/integration/concrete/lockup-dynamic/withdrawable-amount-of/withdrawableAmountOf.tree
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
6 changes: 3 additions & 3 deletions
6
test/integration/concrete/lockup-linear/streamed-amount-of/streamedAmountOf.tree
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
streamedAmountOf.t.sol | ||
└── given the stream's status is "STREAMING" | ||
├── when the cliff time is in the past | ||
├── given the cliff time is in the past | ||
│ └── it should return zero | ||
├── when the cliff time is in the present | ||
├── given the cliff time is in the present | ||
│ └── it should return the correct streamed amount | ||
└── when the cliff time is not in the future | ||
└── given the cliff time is not in the future | ||
└── it should return the correct streamed amount |
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
4 changes: 2 additions & 2 deletions
4
test/integration/concrete/lockup-linear/withdrawable-amount-of/withdrawableAmountOf.tree
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
4 changes: 2 additions & 2 deletions
4
test/integration/concrete/lockup/withdraw-max/withdrawMax.tree
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
withdrawMax.t.sol | ||
├── when the end time is not in the future | ||
├── given the end time is not in the future | ||
│ ├── it should make the max withdrawal | ||
│ ├── it should update the withdrawn amount | ||
│ ├── it should mark the stream as depleted | ||
│ ├── it should make the stream not cancelable | ||
│ └── it should emit a {WithdrawFromLockupStream} event | ||
└── when the end time is in the future | ||
└── given the end time is in the future | ||
├── it should make the max withdrawal | ||
├── it should update the withdrawn amount | ||
└── it should emit a {WithdrawFromLockupStream} event |
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