mirror of
https://github.com/nushell/nushell.git
synced 2024-12-22 15:13:01 +01:00
I'm sorry I'm not following the PR template but this is a quick fix. Fixes #14290
This commit is contained in:
parent
6c7129cc0c
commit
8f9b198d48
6
Cargo.lock
generated
6
Cargo.lock
generated
@ -472,9 +472,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "bracoxide"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ada7f35ca622a86a4d6c27be2633fc6c243ecc834859628fcce0681d8e76e1c8"
|
||||
checksum = "fbc0bcb5424e8e1f29c21a00f2d222df5e8e9779732ff03f840315d8fbac708e"
|
||||
|
||||
[[package]]
|
||||
name = "brotli"
|
||||
@ -7108,7 +7108,7 @@ version = "0.1.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
|
||||
dependencies = [
|
||||
"windows-sys 0.52.0",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -66,7 +66,7 @@ alphanumeric-sort = "1.5"
|
||||
ansi-str = "0.8"
|
||||
anyhow = "1.0.82"
|
||||
base64 = "0.22.1"
|
||||
bracoxide = "0.1.2"
|
||||
bracoxide = "0.1.4"
|
||||
brotli = "6.0"
|
||||
byteorder = "1.5"
|
||||
bytes = "1"
|
||||
|
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user