mirror of
https://github.com/starship/starship.git
synced 2024-12-27 09:38:51 +01:00
chore: fix hindi truncation tests and bump deps (#6271)
* chore: fix hindi trunc test * chore: bump deps
This commit is contained in:
parent
36134d896b
commit
8419c677f1
12
Cargo.lock
generated
12
Cargo.lock
generated
@ -1658,7 +1658,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8a45489186a6123c128fdf6016183fcfab7113e1820eb813127e036e287233fb"
|
||||
dependencies = [
|
||||
"jiff-tzdb-platform",
|
||||
"windows-sys 0.59.0",
|
||||
"windows-sys 0.52.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2305,9 +2305,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "process_control"
|
||||
version = "4.2.2"
|
||||
version = "5.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "17139892be8ee0f51485168e9bd626db6e7d1941d738d183e70e26017f573db0"
|
||||
checksum = "f32c4eb5a227708adf07971a8b0da3d7c8f7fb3e54de64aaaedc9bef72f70b62"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"signal-hook 0.3.17",
|
||||
@ -3192,9 +3192,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "unicode-segmentation"
|
||||
version = "1.11.0"
|
||||
version = "1.12.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"
|
||||
checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
|
||||
|
||||
[[package]]
|
||||
name = "unicode-width"
|
||||
@ -3377,7 +3377,7 @@ version = "0.1.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
|
||||
dependencies = [
|
||||
"windows-sys 0.59.0",
|
||||
"windows-sys 0.48.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -64,6 +64,7 @@ os_info = "3.8.2"
|
||||
path-slash = "0.2.1"
|
||||
pest = "2.7.13"
|
||||
pest_derive = "2.7.13"
|
||||
process_control = "5.0.0"
|
||||
quick-xml = "0.36.2"
|
||||
rand = "0.8.5"
|
||||
rayon = "1.10.0"
|
||||
@ -82,15 +83,13 @@ systemstat = "=0.2.3"
|
||||
terminal_size = "0.4.0"
|
||||
toml = { version = "0.8.19", features = ["preserve_order"] }
|
||||
toml_edit = "0.22.22"
|
||||
unicode-segmentation = "1.11.0"
|
||||
unicode-segmentation = "1.12.0"
|
||||
unicode-width = "0.1.13"
|
||||
urlencoding = "2.1.3"
|
||||
versions = "6.3.2"
|
||||
which = "6.0.3"
|
||||
yaml-rust2 = "0.9.0"
|
||||
|
||||
process_control = { version = "4.2.2", features = ["crossbeam-channel"] }
|
||||
|
||||
guess_host_triple = "0.1.4"
|
||||
home = "0.5.9"
|
||||
shell-words = "1.1.0"
|
||||
|
@ -204,12 +204,12 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_hindi_truncation() -> io::Result<()> {
|
||||
test_truncate_length("नमस्ते", 3, "नमस्", "…")
|
||||
test_truncate_length("नमस्ते", 2, "नम", "…")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hindi_truncation2() -> io::Result<()> {
|
||||
test_truncate_length("नमस्त", 3, "नमस्", "…")
|
||||
test_truncate_length("नमस्त", 2, "नम", "…")
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -81,12 +81,12 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_hindi_truncation() {
|
||||
test_truncate_length("नमस्ते", 3, "नमस्", "…")
|
||||
test_truncate_length("नमस्ते", 2, "नम", "…")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hindi_truncation2() {
|
||||
test_truncate_length("नमस्त", 3, "नमस्", "…")
|
||||
test_truncate_length("नमस्त", 2, "नम", "…")
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user