-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I found the following test case failed in the ark crate while I'm trying to create a nix package for ark 0.1.220
running 1 test
test data_explorer::format::tests::test_truncation ... FAILED
failures:
failures:
data_explorer::format::tests::test_truncation
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 402 filtered out; finished in 0.47s
stderr ---
thread 'data_explorer::format::tests::test_truncation' (9048) panicked at crates/ark/src/data_explorer/format.rs:776:13:
assertion `left == right` failed
left: [FormattedValue("<U+")]
right: [FormattedValue("ボルテ")]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The test case resulting in this error are related to Japanese characters trimming as described here:
ark/crates/ark/src/data_explorer/format.rs
Lines 774 to 778 in aba06d0
| let data = harp::parse_eval_global(r#"c("ボルテックス")"#).unwrap(); | |
| let formatted = format_column(data.sexp, &options); | |
| assert_eq!(formatted, vec![ColumnValue::FormattedValue( | |
| "ボルテ".to_string() | |
| ),]); |
Cargo nextest argument:
--target x86_64-unknown-linux-gnu --offline -j 16 --cargo-profile release --Package versions:
rustc 1.91.1 (ed61e7d7e 2025-11-07) (built from a source tarball)
cargo 1.91.0 (ea2d97820 2025-10-10)
cargo-nextest 0.9.114
release: 0.9.114
My system info:
OS: NixOS 26.05 (Yarara) x86_64
Host: 83E3 (Yoga Pro 7 14AHP9)
Kernel: Linux 6.12.60
CPU: AMD Ryzen 7 8845HS (16) @ 5.14 GHz
GPU 1: NVIDIA GeForce RTX 3050 6GB Laptop GPU [Discrete]
GPU 2: AMD Radeon 780M Graphics [Integrated]
Locale: en_US.UTF-8
Metadata
Metadata
Assignees
Labels
No labels