projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glade: Add #include <config.h>.
[pspp]
/
tests
/
language
/
stats
/
frequencies.at
diff --git
a/tests/language/stats/frequencies.at
b/tests/language/stats/frequencies.at
index 8aaba06c4c65aaece0fc2f2780aa48288e9d699d..1313f8509327159ed27bd26510c6dcfcc6c611c6 100644
(file)
--- a/
tests/language/stats/frequencies.at
+++ b/
tests/language/stats/frequencies.at
@@
-70,7
+70,7
@@
Total,,4,100.0,100.0,
AT_CLEANUP
# Tests for a bug where PSPP would crash when a FREQUENCIES command
AT_CLEANUP
# Tests for a bug where PSPP would crash when a FREQUENCIES command
-# was used with the HTML output driver.
.
+# was used with the HTML output driver.
AT_SETUP([FREQUENCIES HTML output crash])
AT_DATA([frequencies.sps],
[data list free /v1 v2.
AT_SETUP([FREQUENCIES HTML output crash])
AT_DATA([frequencies.sps],
[data list free /v1 v2.
@@
-105,7
+105,7
@@
AT_CHECK([test -s pspp.html])
AT_CLEANUP
# Tests for a bug which crashed PSPP when a piechart with too many
AT_CLEANUP
# Tests for a bug which crashed PSPP when a piechart with too many
-# segments was requested.
.
+# segments was requested.
AT_SETUP([FREQUENCIES pie chart crash])
AT_DATA([frequencies.sps],
[data list list /x * w *.
AT_SETUP([FREQUENCIES pie chart crash])
AT_DATA([frequencies.sps],
[data list list /x * w *.
@@
-130,9
+130,7
@@
frequencies /x /format=notable /statistics=none
])
# Cannot use the CSV driver for this because it does not output charts
# at all.
])
# Cannot use the CSV driver for this because it does not output charts
# at all.
-AT_CHECK([pspp frequencies.sps], [0],
- [DATA LIST
-
+AT_CHECK([pspp frequencies.sps], [0], [dnl
Reading free-form data from INLINE.
+--------+------+
|Variable|Format|
Reading free-form data from INLINE.
+--------+------+
|Variable|Format|
@@
-140,17
+138,26
@@
Reading free-form data from INLINE.
|x |F8.0 |
|w |F8.0 |
+--------+------+
|x |F8.0 |
|w |F8.0 |
+--------+------+
+])
+AT_CLEANUP
-BEGIN DATA
-
-WEIGHT
+# Tests for a bug which crashed PSPP when the median and a histogram
+# were both requested.
+AT_SETUP([FREQUENCIES median with histogram crash])
+AT_DATA([frequencies.sps], [dnl
+data list list notable /x.
+begin data.
+1
+end data.
-FREQUENCIES
+frequencies /x /histogram /STATISTICS=median.
])
])
+AT_CHECK([pspp -O format=csv frequencies.sps], [0], [ignore])
+dnl Ignore output - No crash test.
AT_CLEANUP
# Tests for a bug which caused FREQUENCIES following TEMPORARY to
AT_CLEANUP
# Tests for a bug which caused FREQUENCIES following TEMPORARY to
-# crash (bug #11492).
.
+# crash (bug #11492).
AT_SETUP([FREQUENCIES crash after TEMPORARY])
AT_DATA([frequencies.sps],
[DATA LIST LIST /SEX (A1) X *.
AT_SETUP([FREQUENCIES crash after TEMPORARY])
AT_DATA([frequencies.sps],
[DATA LIST LIST /SEX (A1) X *.