mirror of
https://gitee.com/openharmony/third_party_rust_proc-macro2
synced 2024-12-03 13:12:40 +00:00
Add test of ineffective TokenStream size_hint
This commit is contained in:
parent
6ed82b0b83
commit
f4273659a2
@ -547,6 +547,13 @@ fn default_tokenstream_is_empty() {
|
||||
assert!(default_token_stream.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn tokenstream_size_hint() {
|
||||
let tokens = "a b (c d) e".parse::<TokenStream>().unwrap();
|
||||
|
||||
assert_eq!(tokens.into_iter().size_hint(), (0, None)); // FIXME
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn tuple_indexing() {
|
||||
// This behavior may change depending on https://github.com/rust-lang/rust/pull/71322
|
||||
|
Loading…
Reference in New Issue
Block a user