X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Foutput%2Fascii.at;h=bb43535487c6212dbc88e53615a97bcf408b3ed6;hb=691a034d7f21;hp=a3f66b933be8bb5afdaa570d7799b3282db5dfc6;hpb=b745220f07d9ea7d4196318a79835563bbcbad6f;p=pspp diff --git a/tests/output/ascii.at b/tests/output/ascii.at index a3f66b933b..bb43535487 100644 --- a/tests/output/ascii.at +++ b/tests/output/ascii.at @@ -1,4 +1,19 @@ -AT_BANNER([ASCII driver -- rendering corner cases]) +dnl PSPP - a program for statistical analysis. +dnl Copyright (C) 2017 Free Software Foundation, Inc. +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . +dnl AT_BANNER([ASCII driver -- rendering corner cases]) AT_SETUP([ASCII driver overwriting single-width text]) AT_KEYWORDS([render rendering]) @@ -627,3 +642,46 @@ included in the variable list. ]) AT_CLEANUP + +AT_SETUP([ASCII unicode box chars]) + +AT_DATA([uc.sps], [dnl +SET FORMAT=F8.4. +DATA LIST NOTABLE LIST /x * . +BEGIN DATA. +1 +2 +3 +END DATA. + +DESCRIPTIVES X. +]) + + +AT_CHECK([pspp -O box=unicode uc.sps], [0], [dnl +Valid cases = 3; cases with missing value(s) = 0. +╭────────╥─┬──────┬───────┬───────┬───────╮ +│Variable║N│ Mean │Std Dev│Minimum│Maximum│ +╞════════╬═╪══════╪═══════╪═══════╪═══════╡ +│x ║3│2.0000│ 1.0000│ 1.0000│ 3.0000│ +╰────────╨─┴──────┴───────┴───────┴───────╯ +]) + +AT_CLEANUP + +AT_SETUP([ASCII crash on empty line]) + +AT_DATA([print.sps], [dnl +data list notable /x y 1-2. +begin data. +12 +end data. + +print. + +execute. +]) + +AT_CHECK([pspp print.sps], [0], [ignore]) + +AT_CLEANUP