1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pub
pub
// #[macro_export]
// macro_rules! args {
// () => {{
// let v = Vec::<String>::new();
// v
// }};
// ($($elem:expr),+ $(,)?) => {{
// let v = vec![
// $( String::from($elem), )*
// ];
// v
// }};
// }
// #[macro_export]
// macro_rules! arg_alias {
// ($alias:expr) => {
// format!("{}{}", ALIAS_NAME_PREFIX, $alias)
// };
// }
// #[macro_export]
// macro_rules! assert_str_eq {
// ($url:expr, $expected:expr) => {
// assert_eq!($url, $expected.to_string())
// };
// }
// mod basics {
// #[test]
// fn macro_args() {
// let args = args![];
// let expected: Vec<String> = vec![];
// assert_eq!(args, expected);
// let args = args!["one", "two", "three"];
// let expected: Vec<String> = vec!["one".into(), "two".into(), "three".into()];
// assert_eq!(args, expected);
// }
// #[test]
// fn macro_assert_url_eq() {
// let url = "http://test.com";
// assert_str_eq!(url.to_string(), url);
// }
// }