X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Foutput%2Fascii.at;h=f966fc6f061950286f0338213f3e0681a13949ea;hb=543a4fc802d42256c8f7b950580343fa81370f73;hp=3f13ea8e8d1da989f397e60280a28ba6cc7a2e81;hpb=1a4052ac93c4dd248f664107e78b52597a839066;p=pspp diff --git a/tests/output/ascii.at b/tests/output/ascii.at index 3f13ea8e8d..f966fc6f06 100644 --- a/tests/output/ascii.at +++ b/tests/output/ascii.at @@ -1,16 +1,16 @@ dnl PSPP - a program for statistical analysis. dnl Copyright (C) 2017 Free Software Foundation, Inc. -dnl +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 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 dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see . dnl @@ -620,7 +620,7 @@ DATA LIST LIST /x * y * a (a23). Reading free-form data from INLINE. +--------+------+ |Variable|Format| -#========#======# ++--------+------+ |x |F8.0 | |y |F8.0 | |a |A23 | @@ -660,12 +660,14 @@ 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│ -╰────────╨─┴──────┴───────┴───────┴───────╯ + Descriptive Statistics +╭────────────────────┬─┬──────┬───────┬───────┬───────╮ +│ │N│ Mean │Std Dev│Minimum│Maximum│ +├────────────────────┼─┼──────┼───────┼───────┼───────┤ +│x │3│2.0000│ 1.0000│ 1.0000│ 3.0000│ +│Valid N (listwise) │3│ │ │ │ │ +│Missing N (listwise)│0│ │ │ │ │ +╰────────────────────┴─┴──────┴───────┴───────┴───────╯ ]) AT_CLEANUP @@ -686,3 +688,22 @@ execute. AT_CHECK([pspp print.sps], [0], [ignore]) AT_CLEANUP + + + +dnl A crash has been observed when the first character +dnl of a string is U+0008 +AT_SETUP([ASCII crash on non-printables]) + +AT_DATA([nonprint.sps], [dnl +DATA LIST FREE /s8 (a8). +BEGIN DATA. +xxxxxx zzz a qqq +END DATA. + +LIST. +]) + +AT_CHECK([pspp nonprint.sps], [0], [ignore]) + +AT_CLEANUP