diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-10-25 23:16:20 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2020-10-25 23:16:20 -0700 |
commit | 32ee67eb397bdc1cf4aa9971c5f6eb0c65e656e6 (patch) | |
tree | 4c035f44f5ab63185eba73ee6a2c53d89859f494 /tests/io_window.rs | |
parent | db6917d3753d8b851391d1016bf557fb09fbf54a (diff) | |
download | futures-32ee67eb397bdc1cf4aa9971c5f6eb0c65e656e6.tar.gz |
Upgrade rust/crates/futures to 0.3.7
Test: make all rust crates
Change-Id: If97a17007e814752392c4c66508c46a366437f0b
Diffstat (limited to 'tests/io_window.rs')
-rw-r--r-- | tests/io_window.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/io_window.rs b/tests/io_window.rs index 8cc41a3..8f0d48b 100644 --- a/tests/io_window.rs +++ b/tests/io_window.rs @@ -1,14 +1,17 @@ -#![cfg(feature = "std")] +#![allow(clippy::reversed_empty_ranges)] // This is intentional. + use futures::io::Window; #[test] fn set() { let mut buffer = Window::new(&[1, 2, 3]); buffer.set(..3); + assert_eq!(buffer.as_ref(), &[1, 2, 3]); buffer.set(3..3); + assert_eq!(buffer.as_ref(), &[]); buffer.set(3..=2); // == 3..3 + assert_eq!(buffer.as_ref(), &[]); buffer.set(0..2); - assert_eq!(buffer.as_ref(), &[1, 2]); } |