Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Oct 12, 2023
1 parent 2c17926 commit ff55359
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,13 @@ or you can customized your condition function with `runtime_ignore_if`
```rust
test_with::runner!(custom_mod);

fn something_happend() -> Option<String> {
fn something_happened() -> Option<String> {
Some("because something happened".to_string())
}

#[test_with::module]
mod custom_mod {
#[test_with::runtime_ignore_if(something_happend)]
#[test_with::runtime_ignore_if(something_happened)]
fn test_ignored() {
assert!(false);
}
Expand Down
4 changes: 2 additions & 2 deletions examples/runner/examples/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ mod resource {
}
}

fn something_happend() -> Option<String> {
fn something_happened() -> Option<String> {
Some("because something happened".to_string())
}

#[test_with::module]
mod custom_mod {
#[test_with::runtime_ignore_if(something_happend)]
#[test_with::runtime_ignore_if(something_happened)]
fn test_ignored() {
assert!(false);
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2336,13 +2336,13 @@ pub fn module(_attr: TokenStream, stream: TokenStream) -> TokenStream {
/// ```
/// test_with::runner!(custom_mod);
///
/// fn something_happend() -> Option<String> {
/// fn something_happened() -> Option<String> {
/// Some("because something happened".to_string())
/// }
///
/// #[test_with::module]
/// mod custom_mod {
/// #[test_with::runtime_ignore_if(something_happend)]
/// #[test_with::runtime_ignore_if(something_happened)]
/// fn test_ignored() {
/// assert!(false);
/// }
Expand Down

0 comments on commit ff55359

Please sign in to comment.