Skip to content

Commit b64aa99

Browse files
authored
Merge pull request #1617 from barlevalon/from_into_tests_fix
fix(conversions/from_into.rs): test_trailing_comma() and test_trailing_comma_and_some_string()
2 parents 11d8aea + 2691a35 commit b64aa99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/conversions/from_into.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ mod tests {
127127
#[test]
128128
fn test_trailing_comma() {
129129
let p: Person = Person::from("Mike,32,");
130-
assert_eq!(p.name, "John");
131-
assert_eq!(p.age, 30);
130+
assert_eq!(p.name, "Mike");
131+
assert_eq!(p.age, 32);
132132
}
133133

134134
#[test]
135135
fn test_trailing_comma_and_some_string() {
136136
let p: Person = Person::from("Mike,32,man");
137-
assert_eq!(p.name, "John");
138-
assert_eq!(p.age, 30);
137+
assert_eq!(p.name, "Mike");
138+
assert_eq!(p.age, 32);
139139
}
140140
}

0 commit comments

Comments
 (0)