forked from extern/nushell
I'm sorry I'm not following the PR template but this is a quick fix. Fixes #14290
This commit is contained in:
@ -307,6 +307,20 @@ fn str_expand(contents: &str, span: Span, value_span: Span) -> Value {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_outer_single_item() {
|
||||
assert_eq!(
|
||||
str_expand("{W{x,y}}", Span::test_data(), Span::test_data()),
|
||||
Value::list(
|
||||
vec![
|
||||
Value::string(String::from("Wx"), Span::test_data(),),
|
||||
Value::string(String::from("Wy"), Span::test_data(),)
|
||||
],
|
||||
Span::test_data(),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn dots() {
|
||||
assert_eq!(
|
||||
|
Reference in New Issue
Block a user