style: format Function contract assertions

This commit is contained in:
Xuanwo
2026-09-15 07:26:24 +08:00
parent a41b1437be
commit 420a04a58c
2 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -683,9 +683,11 @@ mod conda_environment_tests {
)
.unwrap();
assert_eq!(conda.channels, ["conda-forge"]);
assert!(serde_json::to_string(&conda)
.unwrap()
.contains(r#""channels":["conda-forge"]"#));
assert!(
serde_json::to_string(&conda)
.unwrap()
.contains(r#""channels":["conda-forge"]"#)
);
let pip: PythonEnvironmentSpec =
serde_json::from_str(r#"{"kind":"pip","packages":["numpy"]}"#).unwrap();
@@ -135,7 +135,9 @@ fn unknown_fields_and_discriminators_are_forward_decodable() {
fn floating_point_application_literals_are_rejected_consistently() {
let error = FunctionApplication::from_json(&fixture("remote_function_application_float.json"))
.unwrap_err();
assert!(error
.to_string()
.contains("floating-point Function literals"));
assert!(
error
.to_string()
.contains("floating-point Function literals")
);
}