-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(l1_provider): implement
proposal_start
- Loading branch information
Gilad Chase
committed
Nov 14, 2024
1 parent
77404ff
commit 6c0a505
Showing
5 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,17 @@ | ||
use assert_matches::assert_matches; | ||
|
||
use crate::errors::L1ProviderError::UnexpectedProviderState; | ||
use crate::{L1Provider, ProviderState}; | ||
|
||
#[test] | ||
fn proposal_start_errors() { | ||
// Setup. | ||
let mut l1_provider = L1Provider::default(); | ||
|
||
// Test | ||
l1_provider.proposal_start().unwrap(); | ||
assert_matches!( | ||
l1_provider.proposal_start().unwrap_err(), | ||
UnexpectedProviderState { from: ProviderState::Propose, to: ProviderState::Propose } | ||
); | ||
} |
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