Skip to content

Commit f76e250

Browse files
committed
fix tests
1 parent b519f73 commit f76e250

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/rust/engine/options/src/args_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn test_float() {
9595

9696
assert_eq!(
9797
"Problem parsing --bad float value:\n1:swallow\n ^\n\
98-
Expected \"+\", \"-\" or ['0' ..= '9'] at line 1 column 1"
98+
Expected \"+\", \"-\" or ['0'..='9'] at line 1 column 1"
9999
.to_owned(),
100100
args.get_float(&option_id!("bad")).unwrap_err()
101101
);

src/rust/engine/options/src/env_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn test_float() {
138138

139139
assert_eq!(
140140
"Problem parsing PANTS_BAD float value:\n1:swallow\n ^\n\
141-
Expected \"+\", \"-\" or ['0' ..= '9'] at line 1 column 1"
141+
Expected \"+\", \"-\" or ['0'..='9'] at line 1 column 1"
142142
.to_owned(),
143143
env.get_float(&option_id!("pants", "bad")).unwrap_err()
144144
);

src/rust/engine/options/src/parse_tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ fn test_parse_int() {
8989
check_int(9223372036854775807, "9223372036854775807");
9090
check_int(-9223372036854775808, "-9223372036854775808");
9191
assert_eq!(
92-
"Problem parsing foo int value:\n1:badint\n ^\nExpected \"+\", \"-\" or ['0' ..= '9'] \
92+
"Problem parsing foo int value:\n1:badint\n ^\nExpected \"+\", \"-\" or ['0'..='9'] \
9393
at line 1 column 1"
9494
.to_owned(),
9595
parse_int("badint").unwrap_err().render("foo")
9696
);
9797
assert_eq!(
98-
"Problem parsing foo int value:\n1:12badint\n --^\nExpected \"_\", EOF or ['0' ..= '9'] \
98+
"Problem parsing foo int value:\n1:12badint\n --^\nExpected \"_\", EOF or ['0'..='9'] \
9999
at line 1 column 3"
100100
.to_owned(),
101101
parse_int("12badint").unwrap_err().render("foo")

0 commit comments

Comments
 (0)