Skip to content

test: data_explorer::format::tests::test_truncation failed on Japanese characters #982

@Th1nkK1D

Description

@Th1nkK1D

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions