apply formatting
This commit is contained in:
+4
-5
@@ -77,11 +77,10 @@ mod tests {
|
||||
let formatted = format_dynamically("{...} is cool!".to_string(), vec!["Rust".to_string()]);
|
||||
assert_eq!(formatted, "Rust is cool!");
|
||||
|
||||
let formatted = format_dynamically("{...}, {...} and {...} are three consecutive numbers.".to_string(), vec![
|
||||
"1".to_string(),
|
||||
"2".to_string(),
|
||||
"3".to_string(),
|
||||
]);
|
||||
let formatted = format_dynamically(
|
||||
"{...}, {...} and {...} are three consecutive numbers.".to_string(),
|
||||
vec!["1".to_string(), "2".to_string(), "3".to_string()],
|
||||
);
|
||||
assert_eq!(formatted, "1, 2 and 3 are three consecutive numbers.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user