Skip to content

Commit f427365

Browse files
committed
Add test of ineffective TokenStream size_hint
1 parent 6ed82b0 commit f427365

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,13 @@ fn default_tokenstream_is_empty() {
547547
assert!(default_token_stream.is_empty());
548548
}
549549

550+
#[test]
551+
fn tokenstream_size_hint() {
552+
let tokens = "a b (c d) e".parse::<TokenStream>().unwrap();
553+
554+
assert_eq!(tokens.into_iter().size_hint(), (0, None)); // FIXME
555+
}
556+
550557
#[test]
551558
fn tuple_indexing() {
552559
// This behavior may change depending on https://github.com/rust-lang/rust/pull/71322

0 commit comments

Comments
 (0)