From 67db51497fb3650d584c2f49d7b31ac6d9013663 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 11 Aug 2025 13:30:26 -0700 Subject: [PATCH] work --- rust/pspp/src/dictionary.rs | 2 +- rust/pspp/src/sys/testdata/attributes.expected | 1 + rust/pspp/src/sys/testdata/duplicate_attribute_name.expected | 1 + rust/pspp/src/sys/testdata/test-encrypted.expected | 1 + rust/pspp/src/sys/testdata/unquoted_attribute_value.expected | 1 + rust/pspp/src/sys/testdata/variable_roles.expected | 1 + rust/pspp/src/sys/testdata/write-numeric-simple.expected | 1 + rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected | 1 + rust/pspp/src/sys/testdata/write-numeric-zlib.expected | 1 + rust/pspp/src/sys/testdata/write-string-simple.expected | 1 + rust/pspp/src/sys/testdata/write-string-uncompressed.expected | 1 + rust/pspp/src/sys/testdata/write-string-zlib.expected | 1 + 12 files changed, 12 insertions(+), 1 deletion(-) diff --git a/rust/pspp/src/dictionary.rs b/rust/pspp/src/dictionary.rs index fdc68f6853..4798f55795 100644 --- a/rust/pspp/src/dictionary.rs +++ b/rust/pspp/src/dictionary.rs @@ -1034,7 +1034,7 @@ impl<'a> OutputAttributes<'a> { let mut pt = PivotTable::new([ (Axis3::X, Dimension::new(values)), (Axis3::Y, Dimension::new(variables)), - ]); + ]).with_title("Data File and Variable Attributes"); for (row, datum) in data.into_iter().enumerate() { pt.insert(&[0, row], datum); } diff --git a/rust/pspp/src/sys/testdata/attributes.expected b/rust/pspp/src/sys/testdata/attributes.expected index 542ee2461f..577bea6123 100644 --- a/rust/pspp/src/sys/testdata/attributes.expected +++ b/rust/pspp/src/sys/testdata/attributes.expected @@ -22,6 +22,7 @@ │ThirdVariable │ 3│ │ │Input │ 8│Right │F8.0 │F8.0 │ │ ╰──────────────┴────────┴─────┴─────────────────┴──────┴─────┴─────────┴────────────┴────────────┴──────────────╯ + Data File and Variable Attributes ╭───────────────────────────────┬─────────────╮ │Variable and Name │ Value │ ├───────────────────────────────┼─────────────┤ diff --git a/rust/pspp/src/sys/testdata/duplicate_attribute_name.expected b/rust/pspp/src/sys/testdata/duplicate_attribute_name.expected index 05fe2754ac..78d1ec0b83 100644 --- a/rust/pspp/src/sys/testdata/duplicate_attribute_name.expected +++ b/rust/pspp/src/sys/testdata/duplicate_attribute_name.expected @@ -22,6 +22,7 @@ Warning at file offsets 0x10e to 0x12d: In file or variable attribute record: Du │firstvar│ 1│ │ │Input│ 8│Right │F8.0 │F8.0 │ │ ╰────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭───────────────────────┬─────╮ │Variable and Name │Value│ ├───────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/test-encrypted.expected b/rust/pspp/src/sys/testdata/test-encrypted.expected index ef4bf38a55..840189423b 100644 --- a/rust/pspp/src/sys/testdata/test-encrypted.expected +++ b/rust/pspp/src/sys/testdata/test-encrypted.expected @@ -58,6 +58,7 @@ │ 5│Strongly Agree │ ╰──────────────────────────────────────────────────────┴─────────────────╯ + Data File and Variable Attributes ╭───────────────────────────────────────────────────────────┬─────╮ │Variable and Name │Value│ ├───────────────────────────────────────────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/unquoted_attribute_value.expected b/rust/pspp/src/sys/testdata/unquoted_attribute_value.expected index 5d5a5c8159..22a368ee06 100644 --- a/rust/pspp/src/sys/testdata/unquoted_attribute_value.expected +++ b/rust/pspp/src/sys/testdata/unquoted_attribute_value.expected @@ -22,6 +22,7 @@ Warning at file offsets 0xfd to 0x10f: In file or variable attribute record: Att │firstvar│ 1│ │ │Input│ 8│Right │F8.0 │F8.0 │ │ ╰────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭───────────────────────┬─────╮ │Variable and Name │Value│ ├───────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/variable_roles.expected b/rust/pspp/src/sys/testdata/variable_roles.expected index 4bd3a7647e..5825b90c08 100644 --- a/rust/pspp/src/sys/testdata/variable_roles.expected +++ b/rust/pspp/src/sys/testdata/variable_roles.expected @@ -28,6 +28,7 @@ Unknown role "6". │x│ 7│ │ │Input │ 8│Right │F8.0 │F8.0 │ │ ╰─┴────────┴─────┴─────────────────┴─────────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭────────────────────────┬─────╮ │Variable and Name │Value│ ├────────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/write-numeric-simple.expected b/rust/pspp/src/sys/testdata/write-numeric-simple.expected index efae9c863a..4dafcc388f 100644 --- a/rust/pspp/src/sys/testdata/write-numeric-simple.expected +++ b/rust/pspp/src/sys/testdata/write-numeric-simple.expected @@ -22,6 +22,7 @@ │variable3│ 4│ │ │Input│ 8│Right │F8.2 │F8.2 │ │ ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭────────────────────────┬─────╮ │Variable and Name │Value│ ├────────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected b/rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected index 3f908c6f30..ac6eae1832 100644 --- a/rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected +++ b/rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected @@ -22,6 +22,7 @@ │variable3│ 4│ │ │Input│ 8│Right │F8.2 │F8.2 │ │ ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭────────────────────────┬─────╮ │Variable and Name │Value│ ├────────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/write-numeric-zlib.expected b/rust/pspp/src/sys/testdata/write-numeric-zlib.expected index 9295cfe888..971572b576 100644 --- a/rust/pspp/src/sys/testdata/write-numeric-zlib.expected +++ b/rust/pspp/src/sys/testdata/write-numeric-zlib.expected @@ -22,6 +22,7 @@ │variable3│ 4│ │ │Input│ 8│Right │F8.2 │F8.2 │ │ ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭────────────────────────┬─────╮ │Variable and Name │Value│ ├────────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/write-string-simple.expected b/rust/pspp/src/sys/testdata/write-string-simple.expected index 40458838bd..34eab53234 100644 --- a/rust/pspp/src/sys/testdata/write-string-simple.expected +++ b/rust/pspp/src/sys/testdata/write-string-simple.expected @@ -23,6 +23,7 @@ │s566│ 5│ │Nominal │Input│ 32│Left │A566 │A566 │ │ ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭────────────────────────┬─────╮ │Variable and Name │Value│ ├────────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/write-string-uncompressed.expected b/rust/pspp/src/sys/testdata/write-string-uncompressed.expected index 09746ba3fe..aaa9214564 100644 --- a/rust/pspp/src/sys/testdata/write-string-uncompressed.expected +++ b/rust/pspp/src/sys/testdata/write-string-uncompressed.expected @@ -23,6 +23,7 @@ │s566│ 5│ │Nominal │Input│ 32│Left │A566 │A566 │ │ ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭────────────────────────┬─────╮ │Variable and Name │Value│ ├────────────────────────┼─────┤ diff --git a/rust/pspp/src/sys/testdata/write-string-zlib.expected b/rust/pspp/src/sys/testdata/write-string-zlib.expected index c6a3f0db22..55aea6b552 100644 --- a/rust/pspp/src/sys/testdata/write-string-zlib.expected +++ b/rust/pspp/src/sys/testdata/write-string-zlib.expected @@ -23,6 +23,7 @@ │s566│ 5│ │Nominal │Input│ 32│Left │A566 │A566 │ │ ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ +Data File and Variable Attributes ╭────────────────────────┬─────╮ │Variable and Name │Value│ ├────────────────────────┼─────┤ -- 2.30.2