chore: fix hindi truncation tests and bump deps (#6271)

* chore: fix hindi trunc test

* chore: bump deps
This commit is contained in:
David Knaack 2024-09-28 13:41:35 +02:00 committed by GitHub
parent 36134d896b
commit 8419c677f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 13 deletions

12
Cargo.lock generated
View File

@ -1658,7 +1658,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a45489186a6123c128fdf6016183fcfab7113e1820eb813127e036e287233fb" checksum = "8a45489186a6123c128fdf6016183fcfab7113e1820eb813127e036e287233fb"
dependencies = [ dependencies = [
"jiff-tzdb-platform", "jiff-tzdb-platform",
"windows-sys 0.59.0", "windows-sys 0.52.0",
] ]
[[package]] [[package]]
@ -2305,9 +2305,9 @@ dependencies = [
[[package]] [[package]]
name = "process_control" name = "process_control"
version = "4.2.2" version = "5.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17139892be8ee0f51485168e9bd626db6e7d1941d738d183e70e26017f573db0" checksum = "f32c4eb5a227708adf07971a8b0da3d7c8f7fb3e54de64aaaedc9bef72f70b62"
dependencies = [ dependencies = [
"libc", "libc",
"signal-hook 0.3.17", "signal-hook 0.3.17",
@ -3192,9 +3192,9 @@ dependencies = [
[[package]] [[package]]
name = "unicode-segmentation" name = "unicode-segmentation"
version = "1.11.0" version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
[[package]] [[package]]
name = "unicode-width" name = "unicode-width"
@ -3377,7 +3377,7 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
dependencies = [ dependencies = [
"windows-sys 0.59.0", "windows-sys 0.48.0",
] ]
[[package]] [[package]]

View File

@ -64,6 +64,7 @@ os_info = "3.8.2"
path-slash = "0.2.1" path-slash = "0.2.1"
pest = "2.7.13" pest = "2.7.13"
pest_derive = "2.7.13" pest_derive = "2.7.13"
process_control = "5.0.0"
quick-xml = "0.36.2" quick-xml = "0.36.2"
rand = "0.8.5" rand = "0.8.5"
rayon = "1.10.0" rayon = "1.10.0"
@ -82,15 +83,13 @@ systemstat = "=0.2.3"
terminal_size = "0.4.0" terminal_size = "0.4.0"
toml = { version = "0.8.19", features = ["preserve_order"] } toml = { version = "0.8.19", features = ["preserve_order"] }
toml_edit = "0.22.22" toml_edit = "0.22.22"
unicode-segmentation = "1.11.0" unicode-segmentation = "1.12.0"
unicode-width = "0.1.13" unicode-width = "0.1.13"
urlencoding = "2.1.3" urlencoding = "2.1.3"
versions = "6.3.2" versions = "6.3.2"
which = "6.0.3" which = "6.0.3"
yaml-rust2 = "0.9.0" yaml-rust2 = "0.9.0"
process_control = { version = "4.2.2", features = ["crossbeam-channel"] }
guess_host_triple = "0.1.4" guess_host_triple = "0.1.4"
home = "0.5.9" home = "0.5.9"
shell-words = "1.1.0" shell-words = "1.1.0"

View File

@ -204,12 +204,12 @@ mod tests {
#[test] #[test]
fn test_hindi_truncation() -> io::Result<()> { fn test_hindi_truncation() -> io::Result<()> {
test_truncate_length("नमस्ते", 3, "नमस्", "") test_truncate_length("नमस्ते", 2, "नम", "")
} }
#[test] #[test]
fn test_hindi_truncation2() -> io::Result<()> { fn test_hindi_truncation2() -> io::Result<()> {
test_truncate_length("नमस्त", 3, "नमस्", "") test_truncate_length("नमस्त", 2, "नम", "")
} }
#[test] #[test]

View File

@ -81,12 +81,12 @@ mod tests {
#[test] #[test]
fn test_hindi_truncation() { fn test_hindi_truncation() {
test_truncate_length("नमस्ते", 3, "नमस्", "") test_truncate_length("नमस्ते", 2, "नम", "")
} }
#[test] #[test]
fn test_hindi_truncation2() { fn test_hindi_truncation2() {
test_truncate_length("नमस्त", 3, "नमस्", "") test_truncate_length("नमस्त", 2, "नम", "")
} }
#[test] #[test]