intro_append_syntax (const struct intro_page *p, struct string *s)
{
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (p->n_cases_button)))
- ds_put_format (s, " /IMPORTCASES=FIRST %d\n",
+ ds_put_format (s, " /IMPORTCASE=FIRST %d\n",
gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (p->n_cases_spin)));
else if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (p->percent_button)))
- ds_put_format (s, " /IMPORTCASES=PERCENT %d\n",
+ ds_put_format (s, " /IMPORTCASE=PERCENT %d\n",
gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (p->percent_spin)));
else
- ds_put_cstr (s, " /IMPORTCASES=ALL\n");
+ ds_put_cstr (s, " /IMPORTCASE=ALL\n");
}
AT_CLEANUP
dnl " (fixes Emacs highlighting)
-AT_SETUP([GET DATA /TYPE=TXT with IMPORTCASES])
+AT_SETUP([GET DATA /TYPE=TXT with IMPORTCASE])
AT_CHECK([$PERL > test.data <<'EOF'
for ($i = 1; $i <= 100; $i++) {
printf "%02d\n", $i;
EOF
])
AT_DATA([get-data.sps], [dnl
-get data /type=txt /file='test.data' /importcases=first 10 /variables x f8.0.
+get data /type=txt /file='test.data' /importcase=first 10 /variables x f8.0.
list.
-get data /type=txt /file='test.data' /importcases=percent 1 /variables x f8.0.
+get data /type=txt /file='test.data' /importcase=percent 1 /variables x f8.0.
list.
-get data /type=txt /file='test.data' /importcases=percent 35 /variables x f8.0.
+get data /type=txt /file='test.data' /importcase=percent 35 /variables x f8.0.
list.
-get data /type=txt /file='test.data' /importcases=percent 95 /variables x f8.0.
+get data /type=txt /file='test.data' /importcase=percent 95 /variables x f8.0.
list.
-get data /type=txt /file='test.data' /importcases=percent 100 /variables x f8.0.
+get data /type=txt /file='test.data' /importcase=percent 100 /variables x f8.0.
list.
])
AT_CHECK([pspp -o pspp.csv get-data.sps])