/[bison]/bison/tests/calc.at
ViewVC logotype

Diff of /bison/tests/calc.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by ra, Thu Apr 25 14:36:38 2002 UTC revision 1.22 by akim, Sun May 26 18:38:41 2002 UTC
# Line 1  Line 1 
1  # Checking the output filenames.                         -*- Autotest -*-  # Checking the output filenames.                         -*- Autotest -*-
2  # Copyright 2000, 2001 Free Software Foundation, Inc.  # Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
3    
4  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
5  # it under the terms of the GNU General Public License as published by  # it under the terms of the GNU General Public License as published by
# Line 406  _AT_CHECK_CALC([$1], Line 406  _AT_CHECK_CALC([$1],
406  (2^2)^3 = 64], [486])  (2^2)^3 = 64], [486])
407    
408  # Some parse errors.  # Some parse errors.
409  _AT_CHECK_CALC_ERROR([$1], [0 0], [10],  _AT_CHECK_CALC_ERROR([$1], [0 0], [11],
410                       [1.3-1.4: parse error, unexpected "number"])                       [1.3-1.4: parse error, unexpected "number"])
411  _AT_CHECK_CALC_ERROR([$1], [1//2], [13],  _AT_CHECK_CALC_ERROR([$1], [1//2], [15],
412                       [1.3-1.4: parse error, unexpected '/', expecting "number" or '-' or '('])                       [1.3-1.4: parse error, unexpected '/', expecting "number" or '-' or '('])
413  _AT_CHECK_CALC_ERROR([$1], [error], [4],  _AT_CHECK_CALC_ERROR([$1], [error], [4],
414                       [1.1-1.2: parse error, unexpected $undefined., expecting "number" or '-' or '\n' or '('])                       [1.1-1.2: parse error, unexpected $undefined., expecting "number" or '-' or '\n' or '('])
415  _AT_CHECK_CALC_ERROR([$1], [1 = 2 = 3], [19],  _AT_CHECK_CALC_ERROR([$1], [1 = 2 = 3], [22],
416                       [1.7-1.8: parse error, unexpected '='])                       [1.7-1.8: parse error, unexpected '='])
417  _AT_CHECK_CALC_ERROR([$1],  _AT_CHECK_CALC_ERROR([$1],
418                       [                       [
419  +1],  +1],
420                       [13],                       [14],
421                       [2.1-2.2: parse error, unexpected '+'])                       [2.1-2.2: parse error, unexpected '+'])
422  # Exercise error messages with EOF: work on an empty file.  # Exercise error messages with EOF: work on an empty file.
423  _AT_CHECK_CALC_ERROR([$1],  _AT_CHECK_CALC_ERROR([$1],
# Line 430  _AT_CHECK_CALC_ERROR([$1], Line 430  _AT_CHECK_CALC_ERROR([$1],
430  # associated to `error'.  # associated to `error'.
431  _AT_CHECK_CALC_ERROR([$1],  _AT_CHECK_CALC_ERROR([$1],
432                       [(1 ++ 2) + (0 0) = 1],                       [(1 ++ 2) + (0 0) = 1],
433                       [76],                       [82],
434  [1.5-1.6: parse error, unexpected '+', expecting "number" or '-' or '('  [1.5-1.6: parse error, unexpected '+', expecting "number" or '-' or '('
435  1.15-1.16: parse error, unexpected "number"  1.15-1.16: parse error, unexpected "number"
436  calc: error: 0 != 1])  calc: error: 0 != 1])

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26