Add the /BLANK subcommand to AUTORECODE
[pspp-builds.git] / tests / language / stats / autorecode.at
index 7f5e6eb376aec3e421bc4f4490a791bb56083d14..c3d8d3cc7745e4ca2396059a46640eec58bb0a3b 100644 (file)
@@ -206,3 +206,34 @@ four        ,nought,2.00,4.00
 ])
 
 AT_CLEANUP
+
+
+
+AT_SETUP([AUTORECODE /blank])
+
+AT_DATA([auto-blank.sps],  [dnl
+data list notable list /x (a8) y * z (a16).
+begin data.
+one   2  fred
+two   4  ""
+""    4  fred
+""    2  charliebrown
+three 2  charliebrown
+end data.
+
+autorecode variables x y z into a b c  /blank=missing.
+
+list a b c y.
+])
+
+AT_CHECK([pspp -O format=csv auto-blank.sps], [0], [dnl
+Table: Data List
+a,b,c,y
+1.00,1.00,2.00,2.00
+3.00,2.00,.  ,4.00
+.  ,2.00,2.00,4.00
+.  ,1.00,1.00,2.00
+2.00,1.00,1.00,2.00
+])
+
+AT_CLEANUP