We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcb43be commit e2c8fc9Copy full SHA for e2c8fc9
agent-control/src/agent_control/config.rs
@@ -594,6 +594,22 @@ agents: {}
594
);
595
}
596
597
+ #[test]
598
+ fn basic_parse_with_windows_crlf() {
599
+ [
600
+ EXAMPLE_AGENTCONTROL_CONFIG,
601
+ EXAMPLE_SUBAGENTS_CONFIG,
602
+ EXAMPLE_K8S_CONFIG,
603
+ ]
604
+ .into_iter()
605
+ .for_each(|cfg_lf| {
606
+ let cfg_crlf = cfg_lf.replace("\n", "\r\n");
607
+ let from_lf: AgentControlConfig = serde_yaml::from_str(cfg_lf).unwrap();
608
+ let from_crlf: AgentControlConfig = serde_yaml::from_str(&cfg_crlf).unwrap();
609
+ assert_eq!(from_lf, from_crlf);
610
+ });
611
+ }
612
+
613
#[test]
614
fn parse_with_wrong_agent_id() {
615
let actual = serde_yaml::from_str::<AgentControlConfig>(AGENTCONTROL_CONFIG_WRONG_AGENT_ID);
0 commit comments