update 'error_msg' unit test
"{}" and "{0}" are now valid format strings
@@ -915,17 +915,9 @@ mod tests {
#[test]
fn error_msg() {
assert_eq!(
- parse("{:dunno}"),
+ parse("{=dunno}"),
Err("malformed format string (invalid type specifier `dunno`)".into())
);
- assert_eq!(
- parse("{}"),
- Err("malformed format string (missing `:`)".into())
- );
- assert_eq!(
- parse("{0}"),
- Err("malformed format string (missing `:`)".into())
- );
}
#[test]
