summaryrefslogtreecommitdiffstats
path: root/zellij-client/src/old_config_converter/unit/convert_layout_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zellij-client/src/old_config_converter/unit/convert_layout_tests.rs')
-rw-r--r--zellij-client/src/old_config_converter/unit/convert_layout_tests.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/zellij-client/src/old_config_converter/unit/convert_layout_tests.rs b/zellij-client/src/old_config_converter/unit/convert_layout_tests.rs
index 30e689bb1..1915da2ab 100644
--- a/zellij-client/src/old_config_converter/unit/convert_layout_tests.rs
+++ b/zellij-client/src/old_config_converter/unit/convert_layout_tests.rs
@@ -140,3 +140,19 @@ fn properly_convert_layout_example_4() -> Result<(), String> {
assert_snapshot!(format!("{}", kdl_config));
Ok(())
}
+
+#[test]
+fn properly_convert_layout_with_command_quoted_args() -> Result<(), String> {
+ let fixture = PathBuf::from(format!(
+ "{}/src/old_config_converter/unit/fixtures/old_yaml_layout_with_quoted_args.yaml",
+ env!("CARGO_MANIFEST_DIR")
+ ));
+ let mut handle = File::open(&fixture).map_err(|e| format!("{}", e))?;
+ let mut raw_config_file = String::new();
+ handle
+ .read_to_string(&mut raw_config_file)
+ .map_err(|e| format!("{}", e))?;
+ let kdl_config = layout_yaml_to_layout_kdl(&raw_config_file)?;
+ assert_snapshot!(format!("{}", kdl_config));
+ Ok(())
+}