X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Foutput%2Fpivot-table.at;h=19b1930ccc013dbfafe8e2f6c92d701b17dc8104;hb=3c95184e5b984dbb02d67941f6253eb9783ed43c;hp=bc66c828f421d639031b75ee8cb243ad7d834f7a;hpb=b0486442675e454c1e542a7098e5f127b2757787;p=pspp diff --git a/tests/output/pivot-table.at b/tests/output/pivot-table.at index bc66c828f4..19b1930ccc 100644 --- a/tests/output/pivot-table.at +++ b/tests/output/pivot-table.at @@ -539,3 +539,75 @@ d3 │c1 54│55┊56│57│58┊59│60│61┊62 │ ┊c3 72│73┊74│75│76┊77│78│79┊80 ]) AT_CLEANUP + +AT_SETUP([pivot table - small numbers]) +AT_DATA([pivot.txt], [[ +/title "small numbers" +/row "exponent"*("0", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9") +/col "sign"*("positive", "negative") +/col "result class"*("general" RC_OTHER, "specific" RC_RESIDUAL) +/cell[0, 0, 0] = 1 +/cell[1, 0, 0] = .1 +/cell[2, 0, 0] = .01 +/cell[3, 0, 0] = .001 +/cell[4, 0, 0] = .0001 +/cell[5, 0, 0] = .00001 +/cell[6, 0, 0] = .000001 +/cell[7, 0, 0] = .0000001 +/cell[8, 0, 0] = .00000001 +/cell[9, 0, 0] = .000000001 +/cell[0, 0, 1] = -1 +/cell[1, 0, 1] = -.1 +/cell[2, 0, 1] = -.01 +/cell[3, 0, 1] = -.001 +/cell[4, 0, 1] = -.0001 +/cell[5, 0, 1] = -.00001 +/cell[6, 0, 1] = -.000001 +/cell[7, 0, 1] = -.0000001 +/cell[8, 0, 1] = -.00000001 +/cell[9, 0, 1] = -.000000001 +/cell[0, 1, 0] = 1 +/cell[1, 1, 0] = .1 +/cell[2, 1, 0] = .01 +/cell[3, 1, 0] = .001 +/cell[4, 1, 0] = .0001 +/cell[5, 1, 0] = .00001 +/cell[6, 1, 0] = .000001 +/cell[7, 1, 0] = .0000001 +/cell[8, 1, 0] = .00000001 +/cell[9, 1, 0] = .000000001 +/cell[0, 1, 1] = -1 +/cell[1, 1, 1] = -.1 +/cell[2, 1, 1] = -.01 +/cell[3, 1, 1] = -.001 +/cell[4, 1, 1] = -.0001 +/cell[5, 1, 1] = -.00001 +/cell[6, 1, 1] = -.000001 +/cell[7, 1, 1] = -.0000001 +/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 +small numbers +╭────────┬─────────────────────────────────────╮ +│ │ result class │ +│ ├───────────────────┬─────────────────┤ +│ │ general │ specific │ +│ ├───────────────────┼─────────────────┤ +│ │ sign │ sign │ +│ ├─────────┬─────────┼────────┬────────┤ +│exponent│ positive│ negative│positive│negative│ +├────────┼─────────┼─────────┼────────┼────────┤ +│0 │ 1.00│ 1.00│ -1.00│ -1.00│ +│-1 │ .10│ .10│ -.10│ -.10│ +│-2 │ .01│ .01│ -.01│ -.01│ +│-3 │ .00│ .00│ .00│ .00│ +│-4 │ .00│ .00│ .00│ .00│ +│-5 │1.00E-005│1.00E-005│ .00│ .00│ +│-6 │1.00E-006│1.00E-006│ .00│ .00│ +│-7 │1.00E-007│1.00E-007│ .00│ .00│ +│-8 │1.00E-008│1.00E-008│ .00│ .00│ +│-9 │1.00E-009│1.00E-009│ .00│ .00│ +╰────────┴─────────┴─────────┴────────┴────────╯ +]) +AT_CLEANUP \ No newline at end of file