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
Simon Michael
2bfdad6fd9
rearrange Tests
2009-03-05 10:00:21 +00:00
Simon Michael
f8905464ac
implement default year, allowing m/d dates in ledger
2009-01-27 21:55:26 +00:00
Simon Michael
1de8a3e3d3
a fix for Y default year parsing
2009-01-23 00:12:56 +00:00
Simon Michael
16e33b50e6
parse Y default year lines in a ledger, so they don't break it (ignoring them)
2009-01-22 23:42:34 +00:00
Simon Michael
b12e4e3ac2
update negative pattern char in tests
2009-03-11 02:57:17 +00:00
Simon Michael
f5e9a8ec79
docs
2009-02-27 04:03:14 +00:00
Simon Michael
6f6ce11ca8
more balance-calculating extraction
2008-12-05 08:26:13 +00:00
Simon Michael
63999d36fe
allow --depth=0 in summarised register reports, to aggregate top-level accounts
2008-12-04 20:37:03 +00:00
Simon Michael
ecd7575b5e
make sample ledger more complex to verify a fix
2008-12-05 08:35:52 +00:00
Simon Michael
765edff7f8
typo
2008-12-05 10:38:20 +00:00
nick
600582184c
Support for !account directives, and tests
2008-12-08 07:21:33 +00:00
Simon Michael
22728c5c07
add a parsedate test
2008-12-10 20:55:02 +00:00
tim
4bc97d237a
Added support for reading historical prices from files
2008-12-16 10:54:20 +00:00
Simon Michael
a8ede0132a
add a failing test for zero-balance root account eliding
2009-01-17 17:59:35 +00:00
Simon Michael
8ff1abfb2a
failing test for eliding !account accounts
2008-12-10 18:37:25 +00:00
nick
ee4a2a1c1e
New ledger parser with file inclusion
2008-12-08 01:49:31 +00:00
Simon Michael
157f47c592
run all tests from internal data, not the sample.ledger file
2008-12-05 08:33:15 +00:00
Simon Michael
866398ecb8
more varied dates in sample ledger
2008-11-26 21:11:10 +00:00
Simon Michael
e34b8b5662
test
2008-12-05 09:28:29 +00:00
Simon Michael
ebdf67a5ab
smart dates: also accept yyyymmdd with no separators
2009-01-17 20:07:24 +00:00
Simon Michael
5a0156d5ee
smart dates: work towards next/last monthname/weekdayname
2009-01-17 20:21:44 +00:00
Simon Michael
5e9f9e530a
better register summarising with --depth and -E support, datespan splitting bugfix
2008-12-04 19:29:29 +00:00
Simon Michael
41a3fb91d5
support reporting intervals in period expressions and register report, and -W/-M/-D
2008-12-03 23:20:38 +00:00
Simon Michael
57c31f5ab0
support basic --period expressions, containing a single smart date
2008-11-27 06:29:29 +00:00
Simon Michael
d25995c1c8
refactor with DateSpan
2008-11-27 04:31:01 +00:00
Simon Michael
b7616562d9
this/last/next month/quarter/year
2008-11-27 02:49:22 +00:00
Simon Michael
7858ed1327
this/next/last day/week
2008-11-27 01:49:13 +00:00
Simon Michael
884ebf2979
gather date stuff together, FuzzyDate -> SmartDate
2008-11-27 00:35:00 +00:00
Simon Michael
8c56c3c4b3
refactoring date parsing, FuzzyDate
2008-11-26 23:21:24 +00:00
Simon Michael
4d49177117
hacking in more date parsing.. today/tomorrow/yesterday
2008-11-26 04:51:15 +00:00
Simon Michael
6c88197c6a
do IO date parsing up front, and support (english) month names
2008-11-26 04:04:05 +00:00
Simon Michael
1c60514973
tighten up date parsing, make it io-friendly and parse Y, M/D, D
2008-11-25 23:52:42 +00:00
Simon Michael
dfe59676fb
support all five date comparisons in --display
2008-11-26 21:18:24 +00:00
Simon Michael
33b2deba75
correction, dates in display expressions should be in brackets
2008-11-25 18:47:26 +00:00
Simon Michael
0582046648
preliminary --display/-d support (-d "d>DATE", sufficient for reconciling)
2008-11-24 21:51:31 +00:00
Simon Michael
06aeefdbf7
test register report with account pattern
2008-11-24 21:41:21 +00:00
Simon Michael
565feb594e
add a --verbose/-v flag, use it to show more test-running detail
2008-11-22 04:49:00 +00:00
Simon Michael
1607661b87
fix the print command
2008-11-22 06:35:10 +00:00
Simon Michael
d5a145f7e4
test noodling
2008-11-22 20:35:36 +00:00
Simon Michael
27c1f06055
make --depth activate -s like ledger's -d'<=N'
2008-11-23 21:21:18 +00:00
Simon Michael
52ff46a326
--basis/-B flag, to show all priced amounts on cost basis. Also a --cost alias.
2008-11-22 20:35:17 +00:00
Simon Michael
7362fbd730
begin smart date parsing
2008-11-22 12:18:19 +00:00
tim
60b4610c2f
Fix bug in parsing of TimeLogs, and enabled a test case for them
2008-11-12 07:17:31 +00:00
Simon Michael
10263ac6d9
test cleanup
2008-11-22 09:23:10 +00:00
Simon Michael
86b510917d
quick --depth option, a hledger feature
2008-11-22 13:11:54 +00:00
Simon Michael
6fc8cdfe3e
-n flag for balance command
2008-11-22 09:46:57 +00:00
Simon Michael
42bfc4afd9
--empty/-E flag
2008-11-22 09:39:58 +00:00
Simon Michael
9d47496d37
refactor balance tests
2008-11-22 06:09:44 +00:00
Simon Michael
f831064644
convert multi-line strings to non-slash style for now so I can use sp to auto-build
2008-10-17 01:29:53 +00:00
Simon Michael
c46189a75b
filter by account patterns when caching a ledger, fix balance report totals
2008-11-22 05:51:48 +00:00
Simon Michael
ea5a87815b
rename setAmountDisplayPrefs to canonicaliseAmounts
2008-11-08 22:02:38 +00:00
tim
514f015849
Implemented types for dates and datetimes
...
This patch replaces the strings used in the Entry, TimeLogEntry, and Transaction
records with real types. Rather than use the inbuild system date and time types
directly, two custom types have been implemented that wrap UTCTime: Date and
DateTime. A minimal API for these has been added.
2008-11-11 12:34:05 +00:00
Simon Michael
c75da36d8d
eight balancereportacctnames tests and some cleanup
2008-11-22 04:38:27 +00:00
Simon Michael
14168d90e3
update a test
2008-11-22 04:49:49 +00:00
Simon Michael
243d5c3086
add a test demonstrating negative account pattern bug
2008-11-21 19:09:42 +00:00
Simon Michael
7a71f137ee
add a test for account filtering affecting balance report totals
2008-11-22 04:50:23 +00:00
Simon Michael
5df70bb3f4
rename --showsubs to --subtotal, like ledger
2008-10-17 16:58:09 +00:00
Simon Michael
33f06f334e
first attempt at storing per-amount price
2008-11-22 16:26:01 +00:00
Simon Michael
83d36dae63
more tests cleanup, and start to move match functions to Utils
2008-11-22 04:44:12 +00:00