From 362df5a3172f6e1bdee2fd3808e5cfc730a111f6 Mon Sep 17 00:00:00 2001 From: LinkTed Date: Wed, 4 Aug 2021 19:58:38 +0300 Subject: [PATCH] io: add test for write_f(32|64)[_le] (#4026) --- tokio/tests/async_send_sync.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tokio/tests/async_send_sync.rs b/tokio/tests/async_send_sync.rs index f6c8db7869d..aa14970eb1b 100644 --- a/tokio/tests/async_send_sync.rs +++ b/tokio/tests/async_send_sync.rs @@ -591,6 +591,12 @@ async_assert_fn!( async_assert_fn!( tokio::io::AsyncWriteExt::write_i128(&mut BoxAsyncWrite, i128): Send & Sync & !Unpin ); +async_assert_fn!( + tokio::io::AsyncWriteExt::write_f32(&mut BoxAsyncWrite, f32): Send & Sync & !Unpin +); +async_assert_fn!( + tokio::io::AsyncWriteExt::write_f64(&mut BoxAsyncWrite, f64): Send & Sync & !Unpin +); async_assert_fn!( tokio::io::AsyncWriteExt::write_u16_le(&mut BoxAsyncWrite, u16): Send & Sync & !Unpin ); @@ -615,6 +621,12 @@ async_assert_fn!( async_assert_fn!( tokio::io::AsyncWriteExt::write_i128_le(&mut BoxAsyncWrite, i128): Send & Sync & !Unpin ); +async_assert_fn!( + tokio::io::AsyncWriteExt::write_f32_le(&mut BoxAsyncWrite, f32): Send & Sync & !Unpin +); +async_assert_fn!( + tokio::io::AsyncWriteExt::write_f64_le(&mut BoxAsyncWrite, f64): Send & Sync & !Unpin +); async_assert_fn!(tokio::io::AsyncWriteExt::flush(&mut BoxAsyncWrite): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::shutdown(&mut BoxAsyncWrite): Send & Sync & !Unpin);