Commit Graph

117 Commits

Author SHA1 Message Date
Simon Michael
9b2a5f56e1 only the add and web commands auto-create the journal file 2011-09-23 03:53:14 +00:00
Simon Michael
35f3a4fa00 print, web: always show both dates, ignoring --effective (#42)
Ledger shows only the effective date with --effective, but not vice versa.
print is supposed to be information-preserving so this seems better.
This also fixes the web entries view.
2011-09-23 14:50:20 +00:00
Simon Michael
99e28e5c30 add: simplify filename in func tests 2011-09-30 22:54:22 +00:00
Simon Michael
11f31be37e this test looks wrong, get rid of it 2011-09-03 21:25:13 +00:00
Simon Michael
1de9cc1d80 fix a regression balancing a transaction containing different prices
And try to clarify amount arithmetic a bit more. More to come I expect.
2011-09-03 21:27:37 +00:00
Simon Michael
fa5f09f06a handle multiple filter patterns on the command-line again 2011-09-11 20:37:04 +00:00
Dmitry Astapov
fbf8eda58f One more test for implicit commodity pricing (test-for-failure) 2011-04-25 18:37:59 +00:00
Dmitry Astapov
6314080e14 Test for auto-balancing of transactions with two commodities, when first amount is negative 2011-04-24 22:10:30 +00:00
Simon Michael
8d62452260 parsing: historical price directives may contain a numeric time zone, like ledger; note that the time is ignored 2011-06-01 01:50:04 +00:00
Trygve Laugstøl
63f6bd48f2 tests/parse-ledger-sample.test: Was broken, change from ';' to '#' as comment. 2011-06-03 17:38:45 +00:00
Trygve Laugstøl
45b3a07ea7 cli: Making sure the add test remove the journal before and after the test. 2011-06-10 11:35:06 +00:00
Trygve Laugstøl
6ba1119fdc Making sure all tests call 'bin/hleder' (and not just 'hledger'). 2011-06-14 22:44:21 +00:00
Simon Michael
eeca35d6b5 update functional tests to shelltest 1.0 format 2011-08-14 22:15:39 +00:00
Simon Michael
870c687f31 update functional tests 2011-08-25 23:13:25 +00:00
Simon Michael
1273f02a9a more balance/amount clarifications and a test 2011-08-30 11:37:36 +00:00
Simon Michael
059825a9b2 optionsgeddon.. port to cmdargs and a fully modal cli 2011-08-15 22:50:09 +00:00
Trygve Laugstol
dca66a63a7 convert: Adding support for formatting expressions in description-field 2011-06-27 22:59:07 +00:00
Simon Michael
957c349780 --alias command-line option 2011-08-05 00:05:39 +00:00
Trygve Laugstol
28dbb8864f Adding basic ledger FORMAT parser. 2011-06-20 21:33:26 +00:00
Trygve Laugstøl
c582b45bf6 Adding test for the convert command's in and out fields. 2011-06-03 17:40:49 +00:00
Simon Michael
810c6a5dac print: don't show a trailing space when description is blank 2011-01-19 18:55:16 +00:00
Simon Michael
151f549450 new test, small fixes 2011-03-12 20:56:15 +00:00
Max Bolingbroke
8c3aa657b6 Add support for date-format conversion directive 2010-12-21 17:57:06 +00:00
Simon Michael
b2f439eb11 try showing integral "maxprecision" amounts without the .0 (except in add's defaults, where it helps) 2011-01-20 00:17:32 +00:00
Simon Michael
7d2dcddee3 timelog.test notes 2011-04-18 17:31:27 +00:00
Simon Michael
b159f74a4c zero amounts have no sign or commodity, and amounts with different prices are aggregated, like ledger 2011-04-22 13:50:05 +00:00
Simon Michael
d9ee8b23a6 precision tests 2011-01-21 20:52:56 +00:00
Dmitry Astapov
222a26c306 test: when total balance is zero, it should stay zero regardless of "--basis" 2011-04-19 20:15:11 +00:00
Simon Michael
ef0f054230 update shell tests for latest shelltestrunner 2011-03-12 20:55:49 +00:00
Simon Michael
e2c38d59d7 more precision tests 2011-01-20 01:08:14 +00:00
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