From f0441d066955331f72a3b9b8b48baa92186e7ac4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 2 Aug 2025 11:51:11 -0700 Subject: [PATCH] improve test --- rust/pspp/src/sys/test.rs | 4 ++-- rust/pspp/src/sys/testdata/write-string-simple.expected | 4 ++-- rust/pspp/src/sys/testdata/write-string-uncompressed.expected | 4 ++-- rust/pspp/src/sys/testdata/write-string-zlib.expected | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rust/pspp/src/sys/test.rs b/rust/pspp/src/sys/test.rs index 027ef35c11..e59526b8b7 100644 --- a/rust/pspp/src/sys/test.rs +++ b/rust/pspp/src/sys/test.rs @@ -701,8 +701,8 @@ fn write_long_string_value_labels() { .write_writer(&dictionary, Cursor::new(Vec::new())) .unwrap(); for case in [ - ["1", "1", "1", "2"], - ["1", "1", "2", "30"], + ["1", "1", "1", "xyzzyquux"], + ["1", "1", " z", "30"], ["1", "2", "1", "8"], ["1", "2", "2", "20"], ["2", "1", "1", "2"], diff --git a/rust/pspp/src/sys/testdata/write-string-simple.expected b/rust/pspp/src/sys/testdata/write-string-simple.expected index 3eeb7cb056..fcfe2d649d 100644 --- a/rust/pspp/src/sys/testdata/write-string-simple.expected +++ b/rust/pspp/src/sys/testdata/write-string-simple.expected @@ -36,8 +36,8 @@ ╭────┬─────────┬─────────┬─────────┬─────────╮ │Case│ s1 │ s2 │ s3 │ s4 │ ├────┼─────────┼─────────┼─────────┼─────────┤ -│1 │1 │1 │1 │2 │ -│2 │1 │1 │2 │30 │ +│1 │1 │1 │1 │xyzzyquux│ +│2 │1 │1 │ z│30 │ │3 │1 │2 │1 │8 │ │4 │1 │2 │2 │20 │ │5 │2 │1 │1 │2 │ diff --git a/rust/pspp/src/sys/testdata/write-string-uncompressed.expected b/rust/pspp/src/sys/testdata/write-string-uncompressed.expected index 9c773dc975..05b5b980a9 100644 --- a/rust/pspp/src/sys/testdata/write-string-uncompressed.expected +++ b/rust/pspp/src/sys/testdata/write-string-uncompressed.expected @@ -36,8 +36,8 @@ ╭────┬─────────┬─────────┬─────────┬─────────╮ │Case│ s1 │ s2 │ s3 │ s4 │ ├────┼─────────┼─────────┼─────────┼─────────┤ -│1 │1 │1 │1 │2 │ -│2 │1 │1 │2 │30 │ +│1 │1 │1 │1 │xyzzyquux│ +│2 │1 │1 │ z│30 │ │3 │1 │2 │1 │8 │ │4 │1 │2 │2 │20 │ │5 │2 │1 │1 │2 │ diff --git a/rust/pspp/src/sys/testdata/write-string-zlib.expected b/rust/pspp/src/sys/testdata/write-string-zlib.expected index 6812e1aa48..abaa473863 100644 --- a/rust/pspp/src/sys/testdata/write-string-zlib.expected +++ b/rust/pspp/src/sys/testdata/write-string-zlib.expected @@ -36,8 +36,8 @@ ╭────┬─────────┬─────────┬─────────┬─────────╮ │Case│ s1 │ s2 │ s3 │ s4 │ ├────┼─────────┼─────────┼─────────┼─────────┤ -│1 │1 │1 │1 │2 │ -│2 │1 │1 │2 │30 │ +│1 │1 │1 │1 │xyzzyquux│ +│2 │1 │1 │ z│30 │ │3 │1 │2 │1 │8 │ │4 │1 │2 │2 │20 │ │5 │2 │1 │1 │2 │ -- 2.30.2