From: Ben Pfaff Date: Sat, 2 Aug 2025 18:51:11 +0000 (-0700) Subject: improve test X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0441d066955331f72a3b9b8b48baa92186e7ac4;p=pspp improve test --- 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 │