Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(web_chat): reformat test assertions for readability

Steven Enamakelb8f2b21b2946
diff --git a/src/openhuman/web_chat/web_tests_part_01_tests.rs b/src/openhuman/web_chat/web_tests_part_01_tests.rs
index 32e80d1055..05fb1914d4 100644
--- a/src/openhuman/web_chat/web_tests_part_01_tests.rs
+++ b/src/openhuman/web_chat/web_tests_part_01_tests.rs
@@ -237,11 +237,20 @@ fn extract_provider_error_detail_decodes_standard_json_escapes() {
detail.contains("https://api.example.com/v1/models"),
"escaped solidus must decode, got: {detail:?}"
);
- assert!(detail.contains('\r'), "carriage return must decode: {detail:?}");
+ assert!(
+ detail.contains('\r'),
+ "carriage return must decode: {detail:?}"
+ );
assert!(detail.contains('\n'), "newline must decode: {detail:?}");
assert!(detail.contains('\t'), "tab must decode: {detail:?}");
- assert!(detail.contains('\u{8}'), "backspace must decode: {detail:?}");
- assert!(detail.contains('\u{c}'), "form feed must decode: {detail:?}");
+ assert!(
+ detail.contains('\u{8}'),
+ "backspace must decode: {detail:?}"
+ );
+ assert!(
+ detail.contains('\u{c}'),
+ "form feed must decode: {detail:?}"
+ );
}
#[test]