mirror of
https://github.com/openharmony/third_party_rust_quote.git
synced 2026-07-19 13:53:59 -04:00
Add test of underscore token
This commit is contained in:
@@ -263,6 +263,13 @@ fn test_ident() {
|
||||
assert_eq!(expected, tokens.to_string());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_underscore() {
|
||||
let tokens = quote!(let _;);
|
||||
let expected = "let _ ;";
|
||||
assert_eq!(expected, tokens.to_string());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_duplicate() {
|
||||
let ch = 'x';
|
||||
|
||||
Reference in New Issue
Block a user