]> git.proxmox.com Git - rustc.git/blob - vendor/structopt/tests/raw_idents.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / vendor / structopt / tests / raw_idents.rs
1 use structopt::StructOpt;
2
3 #[test]
4 fn raw_idents() {
5 #[derive(StructOpt, Debug, PartialEq)]
6 struct Opt {
7 #[structopt(short, long)]
8 r#type: Vec<String>,
9 }
10
11 assert_eq!(
12 Opt {
13 r#type: vec!["long".into(), "short".into()]
14 },
15 Opt::from_iter(&["test", "--type", "long", "-t", "short"])
16 );
17 }