Commit Graph

198 Commits

Author SHA1 Message Date
Simon Michael
a78f5a1f04 model timelog entry codes precisely 2009-04-03 20:04:51 +00:00
Simon Michael
2edd2da7b8 nullentry -> nullledgertxn 2009-04-07 21:38:15 +00:00
Simon Michael
2eb5f40875 fix is argument order 2009-04-07 23:01:38 +00:00
Simon Michael
a36e0ab30c more tests 2009-04-08 03:10:35 +00:00
Simon Michael
f40d561273 fix bug in eliding of posting amounts 2009-04-07 23:58:04 +00:00
Simon Michael
1085d476f1 parse zero-length input as an empty ledger 2009-04-10 05:42:26 +00:00
Simon Michael
69ce8b9a8e don't treat comments as part of ledger transaction descriptions 2009-04-10 05:37:26 +00:00
Simon Michael
5d1f535b5e require some postings in ledger transactions 2009-04-10 05:00:51 +00:00
Simon Michael
0b22774ec9 test for too-loose transaction parsing 2009-04-10 04:27:16 +00:00
Sergey Astanin
7c0421ec5e basic unicode layout tests for showRegisterReport and showBalanceReport 2009-05-14 21:43:26 +00:00
Simon Michael
1ed196e262 test layout with a non-ascii description, first attempt 2009-05-14 17:05:10 +00:00
Simon Michael
3e6943e5f6 don't show trailing spaces on amountless postings 2009-04-07 23:02:25 +00:00
Simon Michael
8eb31bc5e3 enforce balancing for bracketed virtual postings 2009-05-16 23:12:42 +00:00
Simon Michael
62d2cb71d0 isLedgerTransactionBalanced tests 2009-04-10 08:06:05 +00:00
Simon Michael
819f6709b3 disable unimplemented unicode test 2009-05-23 23:49:35 +00:00
Simon Michael
68fadbe1a7 break up comment to work around haddock bug 2009-05-23 23:44:48 +00:00
Simon Michael
b103f6a0d8 be more accurate about checking balanced amounts, don't rely on display precision 2009-05-16 22:54:12 +00:00
Sergey Astanin
92cb35bffb Some doctests for unicode input/output
Tests:
- layout of balance command
- layout of register command
- layout of print command
- search for unicode account names
- search for unicode descriptions
- error message on broken entry (currently fails)
2009-05-15 08:31:31 +00:00
Simon Michael
c5e7b12a59 add command, reads transactions interactively and adds them to the ledger 2009-04-08 05:30:26 +00:00
Simon Michael
32a3af8334 transactionamount -> postingamount 2009-04-07 21:18:51 +00:00
Simon Michael
d8fe2aabb2 drop TimeLog, it's no longer needed 2009-04-03 11:05:16 +00:00
Simon Michael
b60f9187c0 refactor, moving generic io functions into Ledger.IO 2009-04-04 08:50:36 +00:00
Simon Michael
ab94a6e9a2 --uncleared option 2009-04-03 11:45:56 +00:00
Simon Michael
0f1cbef9a8 namegeddon! conform to new terminology in ledger 3, more or less
This renames RawTransaction -> Posting and Entry -> LedgerTransaction,
plus a bunch more cleanups for consistency.  So while ledger 3 has
transactions containing postings, and so do we when speaking to users,
internally we call ledger 3's transactions LedgerTransaction, and we keep
our old Transaction type as well, because it's useful and used all over
the place. To review:

- ledger 2 had Entrys containing Transactions.

- hledger 0.4 had Entrys containing RawTransactions, and Transactions
  which are a RawTransaction with its parent Entry's info added.
  Transactions are what we most work with when reporting and are
  ubiquitous in the code and docs.

- ledger 3 has Transactions containing Postings.

- hledger 0.5 now has LedgerTransactions containing Postings, with
  Transactions kept as before (a Posting plus it's parent's info).  These
  could be named PartialTransactions or TransactionPostings, but it gets
  too verbose and obscure for devs and users.
2009-04-03 10:58:05 +00:00
Simon Michael
1fc9db3af5 individual transactions now have a cleared status 2009-01-23 00:14:12 +00:00
Simon Michael
3bc2d903b2 move the big limit into depthFromOpts 2009-03-15 11:09:49 +00:00
Simon Michael
82885b3773 more balance report test updates 2009-03-15 11:10:36 +00:00
Simon Michael
5fb256b582 a simple doctest implementation for functional/shell testing 2009-03-15 05:06:36 +00:00
Simon Michael
1110bcaf4e clarify a test case 2009-03-15 12:41:30 +00:00
Simon Michael
fc928ba278 make the auto-clockout test more robust 2009-04-01 08:20:10 +00:00
Simon Michael
38fd44917c test and fix for auto-clockout of a future clockin 2009-04-01 05:00:08 +00:00
Simon Michael
b616cdf0de give some test assertions individual labels 2009-04-01 04:59:08 +00:00
Simon Michael
c8a03999b4 test cleanup 2009-04-01 09:18:31 +00:00
Simon Michael
7521992e85 register command sorts transactions by date
(unlike ledger)
2009-04-02 04:42:10 +00:00
Simon Michael
8256a4fcbd test util cleanups 2009-04-01 04:57:05 +00:00
Simon Michael
bd8dcefd9d apply --depth to print command 2009-04-02 06:02:00 +00:00
Simon Michael
7ba0dc06a5 test and fix for register --depth 2009-04-02 02:52:23 +00:00
Simon Michael
89abdfa456 refactor/fix balanced entry checking and test it properly 2009-04-01 08:55:46 +00:00
Simon Michael
0cacc2a7e4 test and bugfix for multi-day timelog session splitting 2009-03-15 12:42:03 +00:00
Simon Michael
2fad120b1d put commas first in Tests 2009-03-15 06:11:18 +00:00
Simon Michael
80f20bdad8 tests and bugfix for accountNameTreeFrom 2009-03-15 04:02:04 +00:00
Simon Michael
2dac5754c7 subAccounts test and bugfix 2009-03-15 04:06:10 +00:00
Simon Michael
c1267ff17c more tests, cleanups 2009-03-15 04:19:50 +00:00
Simon Michael
c4c94baeab change balance report tests to ledger 3 behaviour - -s by default, -n has no effect 2009-03-15 05:03:30 +00:00
Simon Michael
481b8db0b0 test cleanups 2009-03-11 07:23:07 +00:00
Simon Michael
54b0ef607a rename refdate/reftime in Tests to reduce accidental collisions while we are importing everything 2009-01-25 06:50:59 +00:00
Simon Michael
d8989a357d account/description matching is supposed to be case-insensitive, fix 2009-01-27 22:16:57 +00:00
Simon Michael
185168905e require testpack; give better --verbose test output 2009-02-27 03:31:47 +00:00
Simon Michael
b0178b88cc make prepareLedger use current time, not just date 2009-01-24 18:48:28 +00:00
Simon Michael
5d78004646 name unnamed tests 2009-02-27 03:38:24 +00:00