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 |
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], |
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]) |