Skip to content

Commit

Permalink
tests: Add Result test to tests
Browse files Browse the repository at this point in the history
cc #6

Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull committed Oct 19, 2024
1 parent 0e6cbec commit a6b3174
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ pub mod __private {
#[inline]
fn stop(&self) {
self.stopped.store(true, Ordering::SeqCst);
self.events.notify_additional(std::usize::MAX);
self.events.notify_additional(usize::MAX);
}
}
}
6 changes: 6 additions & 0 deletions tests/macro_usages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,9 @@ async fn with_local_rcref(ex: &Rc<LocalExecutor<'_>>) {
})
.await;
}

#[apply(test!)]
async fn it_works(_ex: &Executor<'_>) -> Result<(), Box<dyn std::error::Error>> {
let _ = u32::try_from(20usize)?;
Ok(())
}

0 comments on commit a6b3174

Please sign in to comment.