Skip to content

Commit 532816c

Browse files
authored
Update all_test.rs
string not char
1 parent 927e7f7 commit 532816c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/tests/all_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ fn shorten_recovery_test() {
7979
let short_code = cols[3];
8080
let test_type = cols[4];
8181

82-
if test_type == 'B' || test_type == 'S' {
82+
if test_type == "B" || test_type == "S" {
8383
assert_eq!(shorten(full_code, Point::new(lng, lat)).unwrap(), short_code, "shorten");
8484
}
85-
if test_type == 'B' || test_type == 'R' {
85+
if test_type == "B" || test_type == "R" {
8686
assert_eq!(
8787
recover_nearest(short_code, Point::new(lng, lat)),
8888
Ok(full_code.to_string()),

0 commit comments

Comments
 (0)