tsk-22: Add function to parse env variable to a vector of strings (#25)
All checks were successful
Release Tagging / release (push) Successful in 33s
Rust Build / Check (push) Successful in 33s
Rust Build / Test Suite (push) Successful in 31s
Rust Build / Rustfmt (push) Successful in 31s
Rust Build / Clippy (push) Successful in 32s
Rust Build / build (push) Successful in 30s
All checks were successful
Release Tagging / release (push) Successful in 33s
Rust Build / Check (push) Successful in 33s
Rust Build / Test Suite (push) Successful in 31s
Rust Build / Rustfmt (push) Successful in 31s
Rust Build / Clippy (push) Successful in 32s
Rust Build / build (push) Successful in 30s
Closes #22 Reviewed-on: #25 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -114,7 +114,28 @@ mod tests {
|
||||
"{} does not match {:?}",
|
||||
icarus_envy::keys::ALLOWED_ORIGINS,
|
||||
result
|
||||
)
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
result.has_delimiter, true,
|
||||
"The {} variable has an issue finding the delimiter",
|
||||
result.key
|
||||
);
|
||||
|
||||
match icarus_envy::utility::delimitize(&result) {
|
||||
Ok(allowed_origins) => {
|
||||
assert_eq!(
|
||||
allowed_origins.len(),
|
||||
2,
|
||||
"The amount of allowed origins does not match. {} {}",
|
||||
allowed_origins.len(),
|
||||
2
|
||||
)
|
||||
}
|
||||
Err(err) => {
|
||||
assert!(false, "Error: {:?}", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user