chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

23
vendor/async-stream/tests/for_await.rs vendored Normal file
View File

@@ -0,0 +1,23 @@
use async_stream::stream;
use futures_util::stream::StreamExt;
#[tokio::test]
async fn test() {
let s = stream! {
yield "hello";
yield "world";
};
let s = stream! {
for await x in s {
yield x.to_owned() + "!";
}
};
let values: Vec<_> = s.collect().await;
assert_eq!(2, values.len());
assert_eq!("hello!", values[0]);
assert_eq!("world!", values[1]);
}