/title "Columns" /display
/title "Rows" /transpose.
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
Columns
╭────────╮
│ a │
│a3│2│
╰──┴─╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([2-d pivot table])
/title "Column x Row" /move "a" column /display
/title "Row x Column" /transpose
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
Columns
╭────────┬────────┬────────╮
│ b1 │ b2 │ b3 │
│a3│ 2│ 5│ 8│
╰──┴──┴──┴──╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([2-d pivot table - dimension labels])
/title "Row x Column - Corner" /transpose /look rowlabels=corner /display
/title "Row x Column - Nested" /look rowlabels=nested
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
Columns
╭──────────────────────────╮
│ b │
│ a3│ 2│ 5│ 8│
╰────┴──┴──┴──╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([2-d pivot table - groups])
/title "Row x Column - delete b1" /cells[all,0]=delete /look empty=hide /display
/title "Row x Column - delete b1 - show empty" /look empty=show.
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
Columns
╭─────────────────┬────────╮
│ bg1 │ │
│ a3│ │ │ 8│
╰──────┴──┴──┴──╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([2-d pivot table - layers])
/title "Column (All Layers)" /look layers=all /display
/title "Row (All Layers)" /transpose /look layers=all
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
Column x b1
b1
╭──┬──┬──╮
│ 6│ 7│ 8│
╰──┴──┴──╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([3-d pivot table - layers])
╰──┴──┴──┴──┴──╯
])
AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([pivot table title and caption])
/title "(Not Shown)" /caption "Caption Only" /show title=no caption=yes /display
/title "(Not Shown)" /caption "(Not Shown)" /show title=no caption=no
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
Title + Caption
╭──┬──┬──╮
│ │a1│a2│
│b2│ 2│ 3│
╰──┴──┴──╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([pivot table footnotes])
/title "Hidden Footnote"[footnote 0]
/footnote[0] "First footnote" marker="*" hide
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0],
+AT_DATA([expout],
[[Pivot Table with Alphabetic Subscript Footnotes[*]
╭────────────┬──────────────────╮
│ │ A[*] │
Caption[*]
2. Second footnote
]])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([pivot table with no dimensions])
AT_DATA([pivot.txt], [[
/title "No Dimensions"
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
No Dimensions
╭╮
╰╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([pivot table with empty dimensions])
/title "Two Empty Dimensions" /row "b"*() /display
/title "Three Dimensions, Two Empty" /row "c"("c1", "c2")
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
One Empty Dimension
Two Empty Dimensions
Three Dimensions, Two Empty
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([pivot table with empty groups])
/look empty=show
/display
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
Default Title
╭──┬──┬──╮
│ │a1│a3│
│b3│ 2│ 3│
╰──┴──┴──╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([pivot table - category and dimension borders])
"cat-col-vert" (dashed "red")
/title "Category and Dimension Borders"
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
Category and Dimension Borders
bg1 │
╶╌╌╌╌╌╌╌╌┬╌╌╌╌╌╌╌╌┤
│ ├╌╌╌╌╌┼╌╌+╌╌┼╌╌┼╌╌+╌╌┼╌╌┼╌╌+╌╌
│ ┊c3 72│73┊74│75│76┊77│78│79┊80
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
AT_SETUP([pivot table - small numbers])
/cell[8, 1, 1] = -.00000001
/cell[9, 1, 1] = -.000000001
]])
-AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [dnl
+AT_DATA([expout], [dnl
small numbers
╭────────┬─────────────────────────────────────╮
│ │ result class │
│-9 │1.00E-009│1.00E-009│ .00│ .00│
╰────────┴─────────┴─────────┴────────┴────────╯
])
+AT_CHECK([pivot-table-test --table-look $srcdir/output/look.stt pivot.txt --box unicode], [0], [expout])
+AT_CHECK([pspp-output -O box=unicode convert render.spv -], [0], [expout])
AT_CLEANUP
\ No newline at end of file