Updated test

This commit is contained in:
2025-10-10 14:11:01 -04:00
parent d9e43a80e4
commit c06d546ae7
2 changed files with 17 additions and 1 deletions

7
src/utility.rs Normal file
View File

@@ -0,0 +1,7 @@
pub fn split_words(var: &crate::EnvVar) -> Result<Vec<String>, std::io::Error> {
if var.has_delimiter {
Ok(var.value.split(var.delimiter).map(|c| c.parse::<String>().unwrap()).collect())
} else {
Err(std::io::Error::other("Environment variable does not have a delimiter"))
}
}