ledger/test
Christoph Dittmann 86a23cd263 Remove TOK_A_YEAR token
This fixes #1626.

The tokenizer eagerly classifies 4-digit integers as TOK_A_YEAR
tokens.  In some contexts such as "every 1000 years", this causes
errors.

I think the tokenizer does not have enough information available to
distinguish between integers and years.

After this patch, the tokenizer will always classify integers as
TOK_INT tokens.  The "has 4 digits" heuristic to determine if an
integer is a year is moved to the place where it's actually
needed (and it can be slightly more generic there, too).
2018-06-10 13:55:17 +01:00
..
baseline Add support for --prepend-format in accounts command 2018-01-25 19:27:24 +01:00
input Add regress test for bugs 550 and 584 2017-01-05 20:16:17 +01:00
manual Enable the baseline and manual tests 2012-05-20 05:01:17 -05:00
python Started writing Python unit tests 2012-03-01 05:50:07 -06:00
regress Remove TOK_A_YEAR token 2018-06-10 13:55:17 +01:00
unit Fix build under Cygwin. 2016-09-29 21:46:45 +03:00
CheckBaselineTests.py --force-color is now tested in CheckBaselinetests.py 2016-10-27 22:05:49 +02:00
CheckComments.py
CheckManpage.py [doc] Report undocumented value expression functions 2015-01-27 22:02:59 +01:00
CheckOptions.py Add missing known functions to test 2015-07-28 17:30:00 -04:00
CheckTexinfo.py [doc] Report undocumented value expression functions 2015-01-27 22:02:59 +01:00
CMakeLists.txt [tests] Set timezone for running tests 2015-08-07 19:42:23 +02:00
ConfirmTests.py Added a test harness error diagnostic 2012-03-30 04:49:45 -05:00
convert.py [misc] Update year in copyright notice to 2017 2018-01-27 15:30:53 +08:00
DocTests.py Fix test harness to work with msys2 2016-09-23 08:14:30 -04:00
fullcheck.sh Corrected an uninitialized memory bug 2012-03-19 22:28:00 -05:00
garbage-input.dat Divorces 25A099C9 from the actual amount.h source file 2013-01-30 16:43:47 -07:00
GenerateTests.py [doc] Add CheckTests to ctest 2015-01-15 14:53:16 +01:00
LedgerHarness.py Fix test harness to work with msys2 2016-09-23 08:14:30 -04:00
PyUnitTests.py Added skeletons for Python unit tests 2012-02-29 22:13:07 -06:00
RegressTests.py Fix test harness to work with msys2 2016-09-23 08:14:30 -04:00