Commit Graph

337 Commits

Author SHA1 Message Date
Simon Michael
c86b968cac update eliding-balance tests for latest shelltestrunner, drop an obscure test 2011-04-19 21:32:13 +00:00
Dmitry Astapov
906e2659dd test: accounts with zero balance should be elided even when multiple commodities are used 2011-04-19 20:22:14 +00:00
Simon Michael
1c7ad7f421 parsing: more careful validation of eg leap years in transaction dates (only) 2011-04-22 13:55:42 +00:00
Simon Michael
6e100703b9 update leap year tests 2011-04-19 21:40:59 +00:00
Dmitry Astapov
049ece6c72 test: effective date of 29 feb should be valid 2011-04-19 20:10:30 +00:00
Dmitry Astapov
cd2d8faaef tests: 29th feb should be correctly handled wrt leap/non-leap year 2011-04-19 20:15:14 +00:00
Simon Michael
33bedcbab0 parsing: infer a conversion price in unpriced two-commodity transactions 2011-01-20 00:18:54 +00:00
Simon Michael
c8614b9a15 amount/price func. test cleanups 2011-01-19 19:00:42 +00:00
Simon Michael
d3663b818e parsing: better international number format support (#32)
This allows period and comma to be used for decimal point and digit group
separator or vice versa, and also flexible digit groups.  See
http://en.wikipedia.org/wiki/Decimal_separator .  Digit group separators
are possibly not worth the trouble and might not stay.
2011-01-19 12:32:18 +00:00
Simon Michael
e03ada3bd3 parsing: support @@ syntax specifying total price 2011-01-15 02:04:53 +00:00
Simon Michael
d7617fe154 parsing: ignore cleared flags at the start of postings, parse account name correctly 2010-11-13 20:20:04 +00:00
Simon Michael
27a0900ea9 fix some tests 2010-11-14 20:03:49 +00:00
Simon Michael
0d6e696699 some more tests and fixes for amount & price display precision 2010-11-14 23:29:04 +00:00
Simon Michael
811e71aba7 price precisions don't influence display precision; balancing is based on display precision (#23)
Like ledger, price amounts are now "unobserved", ie their precision does
not affect the canonical display precisions used when displaying amounts,
and transaction balancing is done based on display precision, ie amounts
are considered to balance if their sum appears to be zero when using the
canonical display precision.
2010-11-14 22:44:37 +00:00
Simon Michael
e707f97847 parsing: parse transaction and posting metadata, though we don't use it yet 2010-11-13 22:17:32 +00:00
Simon Michael
c59f2f088d clean up after add tests 2010-11-19 17:25:05 +00:00
Simon Michael
fcd90212b8 add: combine tests 2010-11-16 15:59:12 +00:00
Simon Michael
ea903ffe6e add: more tests, bugfixes for add's commodity/precision handling; make all tests pass 2010-11-16 15:08:06 +00:00
Simon Michael
19e80c6c6f update failing test 2010-12-06 17:30:22 +00:00
Simon Michael
37378d6b97 add: add default commodity to commodity-less amounts (#26), misc. defaults fixes 2010-11-13 15:11:45 +00:00
Simon Michael
78db98366f parsing: support D default commodity directive 2010-11-12 23:54:21 +00:00
Simon Michael
506ec00818 register: with --depth, clip account names or aggregate postings rather than excluding them 2010-08-02 19:40:38 +00:00
Simon Michael
f05837a442 make file include test more robust (#21)
- space prefix to deter shelltest --with usage
- use the just-built hledger binary, not whatever's in PATH
- more post-test cleanup
2010-09-03 17:44:57 +00:00
Ben Boeckel
5e576e9ff0 fix-recursive-includes
Fix recursive includes beyond depth 3. Also add a test case for the bug.
2010-09-02 00:30:57 +00:00
Simon Michael
1a8353457d a test for the !include with relative paths issue (#21) 2010-08-10 02:52:53 +00:00
Simon Michael
1e7e9a54a0 fix a test for shelltestrunner 0.9 2010-09-03 20:51:01 +00:00
Simon Michael
3c08337cc2 fix no-such-file.test for testing --with something 2010-09-05 16:18:42 +00:00
Simon Michael
586c824cac display non-simple commodity names with double-quotes
This ensures print's output remains parseable. The other commands also
double-quote them, for consistency, like c++ ledger.
2010-05-27 01:38:23 +00:00
Simon Michael
2ae94a9011 make this test runnable individually 2010-07-07 10:09:57 +00:00
Simon Michael
b5d1ebba30 print, register, balance: fix layout with mixed-commodity amounts 2010-07-11 22:51:36 +00:00
Simon Michael
2f6b82122f tweak journal file auto-creation, add tests 2010-07-17 00:45:12 +00:00
Simon Michael
9acb57cfc5 add: allow blank descriptions 2010-07-17 15:13:16 +00:00
Simon Michael
6cd65ea7a6 test updates 2010-07-13 07:16:43 +00:00
Simon Michael
e510a64ec8 make tests pass 2010-05-24 20:57:40 +00:00
Simon Michael
7f8a352c0c stats: don't break on an empty file 2010-07-08 14:04:54 +00:00
Simon Michael
345bffb235 fix unbalanced test, ignoring cosmetic issue 2010-04-14 16:44:24 +00:00
Simon Michael
9c893f634a another cosmetic test fix 2010-04-14 16:57:40 +00:00
Simon Michael
35f87499f7 consolidate register depth tests 2010-05-23 17:47:56 +00:00
Simon Michael
65cf381dbc parsing: timelog entries now generate balanced transactions, using virtual postings 2010-05-23 18:54:14 +00:00
Simon Michael
be30aac3f5 fix an occasional stack overflow error due to infinite recursion in Posting/Transaction equality tests
This was happening with balance command on certain timelog entries, since 0.8.
Now, when testing two postings for equality, their parent transaction's identity is ignored.
2010-05-22 00:45:35 +00:00
Simon Michael
191670c231 tools: update paths in func. tests 2010-05-22 00:52:45 +00:00
Simon Michael
5451e3ad40 parsing: balance real and balanced virtual postings separately, allow an amount-less balanced virtual posting 2010-04-14 16:59:02 +00:00
Simon Michael
7b5f4f33dd more virtual posting tests, one failing 2010-04-14 01:09:45 +00:00
Simon Michael
70a4e25cf5 more test fixes 2010-04-14 18:20:50 +00:00
Simon Michael
77f64a7ddf parsing: if there is no description, don't require a space after the transaction date 2010-04-15 20:44:04 +00:00
Simon Michael
5083255ed3 pricing, print tests 2010-04-15 22:59:22 +00:00
Simon Michael
21e4f87102 parse error message improved itself, awesome.. 2010-03-12 22:02:34 +00:00
Simon Michael
a6b7ef597f fix extra newline in balance error msg 2010-03-09 23:06:27 +00:00
Simon Michael
41b60bbcfc when a transaction is unbalanced, show by how much; refactor 2010-02-27 18:06:29 +00:00
Simon Michael
7a895b0133 convert functional tests to shelltestrunner 0.8 format 2010-04-10 00:11:47 +00:00
Simon Michael
298d192678 register: fix a regression, register should not show posting comments 2010-02-15 20:33:49 +00:00
Simon Michael
1698592706 add: test for #19 2010-02-16 04:41:02 +00:00
Simon Michael
798a83c5ac register: add a test documenting --depth behaviour 2010-02-16 20:56:52 +00:00
Simon Michael
9e28feb516 test for no-commodity amount with a price 2010-03-06 05:00:09 +00:00
Simon Michael
055080c5ca register: with --empty, intervals should continue to ends of the specified period 2010-03-09 03:05:11 +00:00
Simon Michael
d824a982e7 test filter patterns with spaces 2010-03-09 03:17:15 +00:00
Simon Michael
e4cd127fc4 print: always show zero amounts as 0, hiding any commodity/decimal places/price, like ledger 2010-03-09 04:12:38 +00:00
Simon Michael
57c537de41 parsing: N, tag, end tag are now ignored; ledger sample.dat parses 2010-03-12 22:52:57 +00:00
Simon Michael
6977a0eecb parsing: allow numbers in commodities if double-quoted, like ledger 2010-04-05 20:55:57 +00:00
Simon Michael
b2c8933af4 parsing: show a better error for illegal month/day numbers in dates 2010-04-06 02:31:47 +00:00
Simon Michael
abcc831b5a register: fix a Prelude.head error with reporting interval, --empty, and --depth 2010-02-16 21:45:40 +00:00
Simon Michael
c08bccb158 parsing: use actual (ie, first) date's year as a default for the effective (ie, second) date 2010-02-03 21:19:01 +00:00
Simon Michael
edc0913ed9 handle utf8 properly in error messages (issue #5) 2009-07-09 19:12:27 +00:00
Simon Michael
ef3b5ab98d return non-zero exit code on parse failure 2009-11-25 19:56:51 +00:00
Simon Michael
b683ca8e40 update tests for latest shelltestrunner 2009-07-15 14:52:54 +00:00
Simon Michael
c06580ff2a print: show end of line comments; all tests now passing 2009-11-25 21:51:31 +00:00
Simon Michael
53b7962658 fix all recently-broken tests 2009-11-25 12:21:59 +00:00
Simon Michael
cb89dd2b94 test for unimplemented "infer prices while balancing two commodities" 2009-11-25 20:04:17 +00:00
Simon Michael
5493a604e3 parsing: fix timelog parsing 2009-12-07 23:29:19 +00:00
Simon Michael
9560073b2a make historical prices more robust, fix a runtime Map.find error 2009-12-09 20:51:00 +00:00
Simon Michael
fdc3949224 make tests independent of user's default ledger 2009-12-12 03:00:27 +00:00
Simon Michael
5d6c6d778e there shouldn't be brackets in transaction's effective date, my mistake 2009-12-12 03:03:41 +00:00
Simon Michael
b6a5a3398e parsing: tighten up dates, error messages, tests 2009-11-25 21:21:49 +00:00
Simon Michael
4f22fd657e simplify tests for latest shelltestrunner 2009-07-14 21:50:02 +00:00
Simon Michael
cb0a90cbd7 shelltestrunner now packaged separately, update tests for it 2009-07-11 22:30:10 +00:00
Simon Michael
ba47853501 shelltest: make fields in .test files optional 2009-06-27 10:18:34 +00:00
Simon Michael
f8664057ba amountless-virtual-postings.test 2009-06-30 17:20:07 +00:00
Simon Michael
3533f3d0c3 parsing: another comment test 2009-07-10 17:21:30 +00:00
Simon Michael
6091c8a099 add/update some functional tests 2009-07-09 00:38:52 +00:00
Simon Michael
3b9c6448be more test tweaks 2009-06-27 11:02:28 +00:00
Simon Michael
163ba5de93 update tests for latest shelltestrunner 2009-07-12 19:55:02 +00:00
Simon Michael
e110976b47 move add command doctests to shell tests 2009-07-09 18:38:57 +00:00
Simon Michael
e3e935e129 parsing: require whitespace between date and status code, prevent silent effective date breakage 2009-11-25 20:12:09 +00:00
Simon Michael
31ae51b435 add tests for some observed issues 2009-09-16 17:05:59 +00:00
Simon Michael
f209305eef print: show effective dates (issue #12) 2009-12-07 23:28:33 +00:00
Simon Michael
06eb2a9aa8 --effective option uses transactions' effective dates, if any 2009-07-08 23:37:44 +00:00
Simon Michael
9bdb1ab0ec convert a few doctests to shell test format 2009-06-27 08:16:19 +00:00