We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a0521e commit 4f1374aCopy full SHA for 4f1374a
exercises/conversions/from_into.rs
@@ -115,4 +115,18 @@ mod tests {
115
assert_eq!(p.name, "John");
116
assert_eq!(p.age, 30);
117
}
118
+
119
+ #[test]
120
+ fn test_trailing_comma() {
121
+ let p: Person = Person::from("Mike,32,");
122
+ assert_eq!(p.name, "John");
123
+ assert_eq!(p.age, 30);
124
+ }
125
126
127
+ fn test_trailing_comma_and_some_string() {
128
+ let p: Person = Person::from("Mike,32,man");
129
130
131
132
0 commit comments