1use futures::executor::block_on;
2use futures::future::{self, FutureExt};
3
4#[test]
5fn smoke() {
6 let mut counter = 0;
7
8 {
9 let work = future::ready::<i32>(40).inspect(|val| {
10 counter += *val;
11 });
12 assert_eq!(block_on(work), 40);
13 }
14
15 assert_eq!(counter, 40);
16}
17