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(config): cover non-finite float rejection with field path
Steven Enamakel70ba810f5ef9
diff --git a/crates/openhuman-core/src/config/schema/load/parse_tests.rs b/crates/openhuman-core/src/config/schema/load/parse_tests.rsindex e9f0f6ad52..5a86afeab8 100644--- a/crates/openhuman-core/src/config/schema/load/parse_tests.rs+++ b/crates/openhuman-core/src/config/schema/load/parse_tests.rs@@ -48,3 +48,9 @@ fn a_type_error_names_the_field_path() {"{err}");}++#[test]+fn a_non_finite_float_is_rejected_with_its_field_path() {+ let err = config_from_toml_str("default_temperature = nan").unwrap_err();+ assert!(err.to_string().starts_with("default_temperature: "), "{err}");+}