fix up macro expansion
[pspp] / tests / language / control / define.at
index adfd18c8848e6c4d1399026ffdfddcbaf51b9927..930b9ddf4c4bc3f55452a872dea988cced758c3e 100644 (file)
@@ -853,8 +853,8 @@ DEBUG EXPAND.
 !for2 x=1 y=5.
 ])
 AT_CHECK([pspp --testing-mode define.sps], [0], [dnl
-cannot use argument name or macro keyword as !DO variable
-cannot use argument name or macro keyword as !DO variable
+cannot use argument name or macro keyword !x as !DO variable
+cannot use argument name or macro keyword !noexpand as !DO variable
 !DO 1 = 1 !TO 5 !var !DOEND.
 
 !DO !noexpand = 1 !TO 5 !var !DOEND.
@@ -1061,14 +1061,14 @@ DEFINE !macro2()
 !ENDDEFINE.
 
 DEBUG EXPAND.
-!macro 1.
+!macro x=1.
 !macro2.
 ])
 AT_CHECK([pspp --testing-mode define.sps -O format=csv], [0], [dnl
-cannot use argument name or macro keyword as !LET variable
-cannot use argument name or macro keyword as !LET variable
+cannot use argument name or macro keyword !x as !LET variable
+cannot use argument name or macro keyword !do as !LET variable
 expected macro variable name following !DO
-!LET =
+!LET 1 = 1
 
 !LET !do = x
 ])