X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Flanguage%2Fcontrol%2Fdo-repeat.at;h=22ffaa90a5f5c2c5ccd75f6f9096855e30ed2c92;hb=578bc59e7ec144bc8424e9a58807a791314cc0e8;hp=75c0e77a36e9b6aa056ecb488944c410e41da4f2;hpb=92e42986429596633f71457a585b3266209822dd;p=pspp diff --git a/tests/language/control/do-repeat.at b/tests/language/control/do-repeat.at index 75c0e77a36..22ffaa90a5 100644 --- a/tests/language/control/do-repeat.at +++ b/tests/language/control/do-repeat.at @@ -1,3 +1,19 @@ +dnl PSPP - a program for statistical analysis. +dnl Copyright (C) 2017 Free Software Foundation, Inc. +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 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 You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . +dnl AT_BANNER([DO REPEAT]) AT_SETUP([DO REPEAT -- simple]) @@ -72,16 +88,20 @@ END FILE. END INPUT PROGRAM. DO REPEAT x = 1 2 3. -INCLUDE 'include.sps'. +INCLUDE include.sps. END REPEAT. LIST. ]) AT_CHECK([pspp -o pspp.csv do-repeat.sps], [0], [dnl -do-repeat.sps:8: warning: DO REPEAT: Dummy variable name `x' hides dictionary variable `x'. +do-repeat.sps:8.11: warning: DO REPEAT: Dummy variable name `x' hides dictionary variable `x'. + 8 | DO REPEAT x = 1 2 3. + | ^ ]) AT_CHECK([cat pspp.csv], [0], [dnl -do-repeat.sps:8: warning: DO REPEAT: Dummy variable name `x' hides dictionary variable `x'. +"do-repeat.sps:8.11: warning: DO REPEAT: Dummy variable name `x' hides dictionary variable `x'. + 8 | DO REPEAT x = 1 2 3. + | ^" Table: Data List x,y @@ -145,6 +165,6 @@ DATA LIST NOTABLE /x 1. DO REPEAT y = 1 TO 10. ]) AT_CHECK([pspp -O format=csv do-repeat.sps], [1], [dnl -error: DO REPEAT: Syntax error at end of input: expecting END. +error: DO REPEAT: At end of input: Syntax error expecting END. ]) AT_CLEANUP