mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-14 22:56:54 +00:00
style: format Function contract assertions
This commit is contained in:
@@ -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")
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user