The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(core): assert the matching contract error for each mutation
Steven Enamakeld9f6445d5660
diff --git a/crates/openhuman-core/src/core/schema_test_support_tests.rs b/crates/openhuman-core/src/core/schema_test_support_tests.rsindex c912be1d89..5e5de8f5a5 100644--- a/crates/openhuman-core/src/core/schema_test_support_tests.rs+++ b/crates/openhuman-core/src/core/schema_test_support_tests.rs@@ -117,10 +117,15 @@ fn contract_rejects_removed_or_required_optional_declarations() {.expect("independent optional field is present").required = true;}+ let expected_error = if remove {+ "optional inputs mismatch"+ } else {+ "required inputs mismatch"+ };assert!(verify_parameter_contracts(&[broken], std::slice::from_ref(&contract)).unwrap_err()- .contains("optional inputs mismatch")+ .contains(expected_error));}}