Skip to content

Commit

Permalink
test: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Sep 10, 2024
1 parent 9c4f016 commit ac6c11e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ pub mod documentation {
}

#[cfg(test)]
pub mod value_variants {
pub mod value_variants1 {
use error_set::error_set;

error_set! {
Expand Down Expand Up @@ -554,6 +554,11 @@ pub mod value_variants {
"error `3` happened because `oops`".to_string()
);
}
}

#[cfg(test)]
pub mod value_variants2 {
use error_set::error_set;

error_set! {
AuthError = {
Expand All @@ -571,7 +576,7 @@ pub mod value_variants {
}

#[test]
fn from_readme() {
fn test() {
let x: AuthError = AuthError::UserDoesNotExist {
name: "john".to_string(),
role: 30,
Expand Down

0 comments on commit ac6c11e

Please sign in to comment.