Skip to content

Commit f89b9b8

Browse files
committed
test(derive): Make stable across upgrade
1 parent 58eb8a9 commit f89b9b8

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

tests/derive/author_version_about.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ fn use_env() {
3838
struct Opt {}
3939

4040
let output = utils::get_long_help::<Opt>();
41-
assert_data_eq!(output, str![[r#"
42-
clap 4.5.43
41+
assert_data_eq!(
42+
output,
43+
str![[r#"
44+
clap [..]
4345
A simple to use, efficient, and full-featured Command Line Argument Parser
4446
4547
Usage: clap
@@ -51,7 +53,8 @@ Options:
5153
-V, --version
5254
Print version
5355
54-
"#]].raw());
56+
"#]]
57+
);
5558
}
5659

5760
#[test]
@@ -64,7 +67,9 @@ fn explicit_version_not_str_lit() {
6467
pub(crate) struct Opt {}
6568

6669
let output = utils::get_long_help::<Opt>();
67-
assert_data_eq!(output, str![[r#"
70+
assert_data_eq!(
71+
output,
72+
str![[r#"
6873
clap custom version
6974
7075
Usage: clap
@@ -76,5 +81,7 @@ Options:
7681
-V, --version
7782
Print version
7883
79-
"#]].raw());
84+
"#]]
85+
.raw()
86+
);
8087
}

0 commit comments

Comments
 (0)