work
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 11 Aug 2025 20:30:26 +0000 (13:30 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 11 Aug 2025 20:30:26 +0000 (13:30 -0700)
12 files changed:
rust/pspp/src/dictionary.rs
rust/pspp/src/sys/testdata/attributes.expected
rust/pspp/src/sys/testdata/duplicate_attribute_name.expected
rust/pspp/src/sys/testdata/test-encrypted.expected
rust/pspp/src/sys/testdata/unquoted_attribute_value.expected
rust/pspp/src/sys/testdata/variable_roles.expected
rust/pspp/src/sys/testdata/write-numeric-simple.expected
rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected
rust/pspp/src/sys/testdata/write-numeric-zlib.expected
rust/pspp/src/sys/testdata/write-string-simple.expected
rust/pspp/src/sys/testdata/write-string-uncompressed.expected
rust/pspp/src/sys/testdata/write-string-zlib.expected

index fdc68f685355c29a5f33198dde5564ecfa73af25..4798f557954bd40cbdc95d0a4520bd43e142c183 100644 (file)
@@ -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);
         }
index 542ee2461f6152d49ea6a033ea784cdc6db74c75..577bea6123b31d7a90e0206f1448601a354aa8f4 100644 (file)
@@ -22,6 +22,7 @@
 │ThirdVariable │       3│     │                 │Input │    8│Right    │F8.0        │F8.0        │              │
 ╰──────────────┴────────┴─────┴─────────────────┴──────┴─────┴─────────┴────────────┴────────────┴──────────────╯
 
+       Data File and Variable Attributes
 ╭───────────────────────────────┬─────────────╮
 │Variable and Name              │    Value    │
 ├───────────────────────────────┼─────────────┤
index 05fe2754acfdada0fe84925ddb448e54da23a70b..78d1ec0b8361a882ea5377e4260471430546138b 100644 (file)
@@ -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│
 ├───────────────────────┼─────┤
index ef4bf38a55d781fd67a1a4d2fef573faf99c1d17..840189423ba1a4c521e0ce0ddb7c5cb2511f8b0a 100644 (file)
@@ -58,6 +58,7 @@
 │                                                     5│Strongly Agree   │
 ╰──────────────────────────────────────────────────────┴─────────────────╯
 
+                 Data File and Variable Attributes
 ╭───────────────────────────────────────────────────────────┬─────╮
 │Variable and Name                                          │Value│
 ├───────────────────────────────────────────────────────────┼─────┤
index 5d5a5c815923be8e173573b84535310aacfdc8be..22a368ee068c5f3e935f50caea05f246fba6482d 100644 (file)
@@ -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│
 ├───────────────────────┼─────┤
index 4bd3a7647e262aa4e18698225b94c4ed27f0c5d2..5825b90c08a300aeba179ec7310d9e04b3db5713 100644 (file)
@@ -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│
 ├────────────────────────┼─────┤
index efae9c863ab75042972ff394dc2b30f11cb65672..4dafcc388fd53a38907f76754cc51e9bcad5c15c 100644 (file)
@@ -22,6 +22,7 @@
 │variable3│       4│     │                 │Input│    8│Right    │F8.2        │F8.2        │              │
 ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
 
+Data File and Variable Attributes
 ╭────────────────────────┬─────╮
 │Variable and Name       │Value│
 ├────────────────────────┼─────┤
index 3f908c6f309fda2d83db8efc87e835bdc140f870..ac6eae1832c52f808e0e3d23128c7730f5c05cd3 100644 (file)
@@ -22,6 +22,7 @@
 │variable3│       4│     │                 │Input│    8│Right    │F8.2        │F8.2        │              │
 ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
 
+Data File and Variable Attributes
 ╭────────────────────────┬─────╮
 │Variable and Name       │Value│
 ├────────────────────────┼─────┤
index 9295cfe8889195ad29c75844c28c10cc229f72d4..971572b57670ddfa44cd29f8ff700ef9f206bc58 100644 (file)
@@ -22,6 +22,7 @@
 │variable3│       4│     │                 │Input│    8│Right    │F8.2        │F8.2        │              │
 ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
 
+Data File and Variable Attributes
 ╭────────────────────────┬─────╮
 │Variable and Name       │Value│
 ├────────────────────────┼─────┤
index 40458838bd92acc841140ef048bed09c97489a07..34eab53234fdaaf4e63a299a5c2b1e70f3885801 100644 (file)
@@ -23,6 +23,7 @@
 │s566│       5│     │Nominal          │Input│   32│Left     │A566        │A566        │              │
 ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
 
+Data File and Variable Attributes
 ╭────────────────────────┬─────╮
 │Variable and Name       │Value│
 ├────────────────────────┼─────┤
index 09746ba3fe9c389d0ba5e1538fe500b4186a6fcc..aaa9214564050f6fa892ea97d0e97a0acb5160ae 100644 (file)
@@ -23,6 +23,7 @@
 │s566│       5│     │Nominal          │Input│   32│Left     │A566        │A566        │              │
 ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
 
+Data File and Variable Attributes
 ╭────────────────────────┬─────╮
 │Variable and Name       │Value│
 ├────────────────────────┼─────┤
index c6a3f0db22bc83f89f7adaedca45f0b670e7d508..55aea6b552ca864fb591dbdc35ef79eba440cf63 100644 (file)
@@ -23,6 +23,7 @@
 │s566│       5│     │Nominal          │Input│   32│Left     │A566        │A566        │              │
 ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
 
+Data File and Variable Attributes
 ╭────────────────────────┬─────╮
 │Variable and Name       │Value│
 ├────────────────────────┼─────┤