summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 19:17:43 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 19:17:43 -0500
commit46e46dd5a337c009391583a679d6172cf4f5aa42 (patch)
tree67009e7d8681685afec8b09dcb7930570492e36f /test
parenta048afc8a34d3a1c1a6372ef6b7cc373779bcac0 (diff)
parentd6790072eff9cb2a938ee9ed204263ee277a6874 (diff)
downloadfork-ledger-46e46dd5a337c009391583a679d6172cf4f5aa42.tar.gz
fork-ledger-46e46dd5a337c009391583a679d6172cf4f5aa42.tar.bz2
fork-ledger-46e46dd5a337c009391583a679d6172cf4f5aa42.zip
Merge branch 'next'
Diffstat (limited to 'test')
-rwxr-xr-xtest/ConfirmTests.py2
-rwxr-xr-xtest/GenerateTests.py6
-rwxr-xr-xtest/LedgerHarness.py31
-rwxr-xr-xtest/RegressTests.py10
-rw-r--r--test/baseline/opt-add-budget.test144
-rw-r--r--test/baseline/opt-anon.test4
-rw-r--r--test/baseline/opt-budget.test96
-rw-r--r--test/manual/transaction-codes-1.test22
-rw-r--r--test/manual/transaction-codes-2.test24
-rw-r--r--test/manual/transaction-notes-1.test24
-rw-r--r--test/manual/transaction-notes-2.test23
-rw-r--r--test/manual/transaction-notes-3.test23
-rw-r--r--test/manual/transaction-notes-4.test27
-rw-r--r--test/manual/transaction-status-1.test19
-rw-r--r--test/manual/transaction-status-2.test17
-rw-r--r--test/manual/transaction-status-3.test18
-rw-r--r--test/manual/transaction-status-4.test17
-rw-r--r--test/regress/25A099C9.test19
-rw-r--r--test/regress/373540CC.test9
-rw-r--r--test/regress/5F1BAF17.test130
-rw-r--r--test/regress/7F3650FD.test50
-rw-r--r--test/regress/8254755E.test20
-rw-r--r--test/regress/D060256A.test16
-rw-r--r--test/regress/E627C594.test18
-rw-r--r--test/regress/F559EC12.test8
25 files changed, 634 insertions, 143 deletions
diff --git a/test/ConfirmTests.py b/test/ConfirmTests.py
index 0b3d4897..901ae7cd 100755
--- a/test/ConfirmTests.py
+++ b/test/ConfirmTests.py
@@ -10,7 +10,7 @@ import re
from LedgerHarness import LedgerHarness
harness = LedgerHarness(sys.argv)
-tests = sys.argv[2]
+tests = sys.argv[3]
if not os.path.isdir(tests) and not os.path.isfile(tests):
sys.exit(1)
diff --git a/test/GenerateTests.py b/test/GenerateTests.py
index aa36737d..d60e0581 100755
--- a/test/GenerateTests.py
+++ b/test/GenerateTests.py
@@ -104,9 +104,9 @@ def generation_test(seed):
beg_range = 1
end_range = 20
-if len(sys.argv) > 3:
- beg_range = int(sys.argv[2])
- end_range = int(sys.argv[3])
+if len(sys.argv) > 4:
+ beg_range = int(sys.argv[3])
+ end_range = int(sys.argv[4])
for i in range(beg_range, end_range):
if generation_test(i):
diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py
index cf65f590..8a5af123 100755
--- a/test/LedgerHarness.py
+++ b/test/LedgerHarness.py
@@ -7,22 +7,27 @@ import re
from subprocess import Popen, PIPE
class LedgerHarness:
- ledger = None
- succeeded = 0
- failed = 0
- verify = False
- gmalloc = False
+ ledger = None
+ sourcepath = None
+ succeeded = 0
+ failed = 0
+ verify = False
+ gmalloc = False
def __init__(self, argv):
if not os.path.isfile(argv[1]):
print "Cannot find ledger at '%s'" % argv[1]
sys.exit(1)
+ if not os.path.isdir(argv[2]):
+ print "Cannot find source path at '%s'" % argv[2]
+ sys.exit(1)
- self.ledger = argv[1]
- self.succeeded = 0
- self.failed = 0
- self.verify = '--verify' in argv
- self.gmalloc = '--gmalloc' in argv
+ self.ledger = argv[1]
+ self.sourcepath = argv[2]
+ self.succeeded = 0
+ self.failed = 0
+ self.verify = '--verify' in argv
+ self.gmalloc = '--gmalloc' in argv
def run(self, command, verify=None, gmalloc=None, columns=True):
env = os.environ.copy()
@@ -48,10 +53,8 @@ class LedgerHarness:
if columns:
insert += ' --columns=80'
- command = re.sub('\$ledger', '%s%s %s %s %s %s' % \
- (self.ledger, insert, '--args-only',
- '--no-color', '--pager=none',
- '--date-format=%y-%b-%d'), command)
+ command = re.sub('\$ledger', '%s%s %s' % \
+ (self.ledger, insert, '--args-only'), command)
return Popen(command, shell=True, close_fds=True, env=env,
stdin=PIPE, stdout=PIPE, stderr=PIPE)
diff --git a/test/RegressTests.py b/test/RegressTests.py
index 4d23f6b5..13a0a113 100755
--- a/test/RegressTests.py
+++ b/test/RegressTests.py
@@ -11,7 +11,7 @@ from difflib import unified_diff
from LedgerHarness import LedgerHarness
harness = LedgerHarness(sys.argv)
-tests = sys.argv[2]
+tests = sys.argv[3]
if not os.path.isdir(tests) and not os.path.isfile(tests):
sys.exit(1)
@@ -27,11 +27,15 @@ class RegressFile:
line == ">>>2\n" or \
line.startswith("===")
+ def transform_line(self, line):
+ line = re.sub('\$sourcepath', harness.sourcepath, line)
+ return line
+
def read_section(self):
lines = []
line = self.fd.readline()
while not self.is_directive(line):
- lines.append(line)
+ lines.append(self.transform_line(line))
line = self.fd.readline()
return (lines, line)
@@ -60,7 +64,7 @@ class RegressFile:
test['exitcode'] = int(match.group(1))
return test
else:
- test['command'] = line
+ test['command'] = self.transform_line(line)
line = self.fd.readline()
return None
diff --git a/test/baseline/opt-add-budget.test b/test/baseline/opt-add-budget.test
index 20dfd320..535335d3 100644
--- a/test/baseline/opt-add-budget.test
+++ b/test/baseline/opt-add-budget.test
@@ -244,124 +244,124 @@ reg --add-budget books cards
Liabilities:Cards $120.00
Assets:Cash
>>>1
-08-Jan-01 January Expenses:Books $10.00 $10.00
- Liabilities:Cards $10.00 $20.00
-08-Jan-01 Budget transaction Expenses:Books $-10.00 $10.00
+08-Jan-01 Budget transaction Expenses:Books $-10.00 $-10.00
+08-Jan-01 January Expenses:Books $10.00 0
+ Liabilities:Cards $10.00 $10.00
08-Jan-31 End of January Expenses:Books $10.00 $20.00
Liabilities:Cards $10.00 $30.00
-08-Feb-01 February Expenses:Books $20.00 $50.00
- Liabilities:Cards $20.00 $70.00
-08-Feb-01 Budget transaction Expenses:Books $-10.00 $60.00
+08-Feb-01 Budget transaction Expenses:Books $-10.00 $20.00
+08-Feb-01 February Expenses:Books $20.00 $40.00
+ Liabilities:Cards $20.00 $60.00
08-Feb-28 End of February Expenses:Books $20.00 $80.00
Liabilities:Cards $20.00 $100.00
-08-Mar-01 March Expenses:Books $30.00 $130.00
- Liabilities:Cards $30.00 $160.00
-08-Mar-01 Budget transaction Expenses:Books $-10.00 $150.00
+08-Mar-01 Budget transaction Expenses:Books $-10.00 $90.00
+08-Mar-01 March Expenses:Books $30.00 $120.00
+ Liabilities:Cards $30.00 $150.00
08-Mar-31 End of March Expenses:Books $30.00 $180.00
Liabilities:Cards $30.00 $210.00
-08-Apr-01 April Expenses:Books $40.00 $250.00
- Liabilities:Cards $40.00 $290.00
-08-Apr-01 Budget transaction Expenses:Books $-10.00 $280.00
+08-Apr-01 Budget transaction Expenses:Books $-10.00 $200.00
+08-Apr-01 April Expenses:Books $40.00 $240.00
+ Liabilities:Cards $40.00 $280.00
08-Apr-30 End of April Expenses:Books $40.00 $320.00
Liabilities:Cards $40.00 $360.00
-08-May-01 May Expenses:Books $50.00 $410.00
- Liabilities:Cards $50.00 $460.00
-08-May-01 Budget transaction Expenses:Books $-10.00 $450.00
+08-May-01 Budget transaction Expenses:Books $-10.00 $350.00
+08-May-01 May Expenses:Books $50.00 $400.00
+ Liabilities:Cards $50.00 $450.00
08-May-31 End of May Expenses:Books $50.00 $500.00
Liabilities:Cards $50.00 $550.00
-08-Jun-01 June Expenses:Books $60.00 $610.00
- Liabilities:Cards $60.00 $670.00
-08-Jun-01 Budget transaction Expenses:Books $-10.00 $660.00
+08-Jun-01 Budget transaction Expenses:Books $-10.00 $540.00
+08-Jun-01 June Expenses:Books $60.00 $600.00
+ Liabilities:Cards $60.00 $660.00
08-Jun-30 End of June Expenses:Books $60.00 $720.00
Liabilities:Cards $60.00 $780.00
-08-Jul-01 July Expenses:Books $70.00 $850.00
- Liabilities:Cards $70.00 $920.00
-08-Jul-01 Budget transaction Expenses:Books $-10.00 $910.00
+08-Jul-01 Budget transaction Expenses:Books $-10.00 $770.00
+08-Jul-01 July Expenses:Books $70.00 $840.00
+ Liabilities:Cards $70.00 $910.00
08-Jul-31 End of July Expenses:Books $70.00 $980.00
Liabilities:Cards $70.00 $1050.00
-08-Aug-01 August Expenses:Books $80.00 $1130.00
- Liabilities:Cards $80.00 $1210.00
-08-Aug-01 Budget transaction Expenses:Books $-10.00 $1200.00
+08-Aug-01 Budget transaction Expenses:Books $-10.00 $1040.00
+08-Aug-01 August Expenses:Books $80.00 $1120.00
+ Liabilities:Cards $80.00 $1200.00
08-Aug-31 End of August Expenses:Books $80.00 $1280.00
Liabilities:Cards $80.00 $1360.00
-08-Sep-01 September Expenses:Books $90.00 $1450.00
- Liabilities:Cards $90.00 $1540.00
-08-Sep-01 Budget transaction Expenses:Books $-10.00 $1530.00
+08-Sep-01 Budget transaction Expenses:Books $-10.00 $1350.00
+08-Sep-01 September Expenses:Books $90.00 $1440.00
+ Liabilities:Cards $90.00 $1530.00
08-Sep-30 End of September Expenses:Books $90.00 $1620.00
Liabilities:Cards $90.00 $1710.00
-08-Oct-01 October Expenses:Books $100.00 $1810.00
- Liabilities:Cards $100.00 $1910.00
-08-Oct-01 Budget transaction Expenses:Books $-10.00 $1900.00
+08-Oct-01 Budget transaction Expenses:Books $-10.00 $1700.00
+08-Oct-01 October Expenses:Books $100.00 $1800.00
+ Liabilities:Cards $100.00 $1900.00
08-Oct-31 End of October Expenses:Books $100.00 $2000.00
Liabilities:Cards $100.00 $2100.00
-08-Nov-01 November Expenses:Books $110.00 $2210.00
- Liabilities:Cards $110.00 $2320.00
-08-Nov-01 Budget transaction Expenses:Books $-10.00 $2310.00
+08-Nov-01 Budget transaction Expenses:Books $-10.00 $2090.00
+08-Nov-01 November Expenses:Books $110.00 $2200.00
+ Liabilities:Cards $110.00 $2310.00
08-Nov-30 End of November Expenses:Books $110.00 $2420.00
Liabilities:Cards $110.00 $2530.00
-08-Dec-01 December Expenses:Books $120.00 $2650.00
- Liabilities:Cards $120.00 $2770.00
-08-Dec-01 Budget transaction Expenses:Books $-10.00 $2760.00
+08-Dec-01 Budget transaction Expenses:Books $-10.00 $2520.00
+08-Dec-01 December Expenses:Books $120.00 $2640.00
+ Liabilities:Cards $120.00 $2760.00
08-Dec-31 End of December Expenses:Books $120.00 $2880.00
Liabilities:Cards $120.00 $3000.00
-09-Jan-01 January Expenses:Books $10.00 $3010.00
- Liabilities:Cards $10.00 $3020.00
-09-Jan-01 Budget transaction Expenses:Books $-10.00 $3010.00
+09-Jan-01 Budget transaction Expenses:Books $-10.00 $2990.00
+09-Jan-01 January Expenses:Books $10.00 $3000.00
+ Liabilities:Cards $10.00 $3010.00
09-Jan-31 End of January Expenses:Books $10.00 $3020.00
Liabilities:Cards $10.00 $3030.00
-09-Feb-01 February Expenses:Books $20.00 $3050.00
- Liabilities:Cards $20.00 $3070.00
-09-Feb-01 Budget transaction Expenses:Books $-10.00 $3060.00
+09-Feb-01 Budget transaction Expenses:Books $-10.00 $3020.00
+09-Feb-01 February Expenses:Books $20.00 $3040.00
+ Liabilities:Cards $20.00 $3060.00
09-Feb-28 End of February Expenses:Books $20.00 $3080.00
Liabilities:Cards $20.00 $3100.00
-09-Mar-01 March Expenses:Books $30.00 $3130.00
- Liabilities:Cards $30.00 $3160.00
-09-Mar-01 Budget transaction Expenses:Books $-10.00 $3150.00
+09-Mar-01 Budget transaction Expenses:Books $-10.00 $3090.00
+09-Mar-01 March Expenses:Books $30.00 $3120.00
+ Liabilities:Cards $30.00 $3150.00
09-Mar-31 End of March Expenses:Books $30.00 $3180.00
Liabilities:Cards $30.00 $3210.00
-09-Apr-01 April Expenses:Books $40.00 $3250.00
- Liabilities:Cards $40.00 $3290.00
-09-Apr-01 Budget transaction Expenses:Books $-10.00 $3280.00
+09-Apr-01 Budget transaction Expenses:Books $-10.00 $3200.00
+09-Apr-01 April Expenses:Books $40.00 $3240.00
+ Liabilities:Cards $40.00 $3280.00
09-Apr-30 End of April Expenses:Books $40.00 $3320.00
Liabilities:Cards $40.00 $3360.00
-09-May-01 May Expenses:Books $50.00 $3410.00
- Liabilities:Cards $50.00 $3460.00
-09-May-01 Budget transaction Expenses:Books $-10.00 $3450.00
+09-May-01 Budget transaction Expenses:Books $-10.00 $3350.00
+09-May-01 May Expenses:Books $50.00 $3400.00
+ Liabilities:Cards $50.00 $3450.00
09-May-31 End of May Expenses:Books $50.00 $3500.00
Liabilities:Cards $50.00 $3550.00
-09-Jun-01 June Expenses:Books $60.00 $3610.00
- Liabilities:Cards $60.00 $3670.00
-09-Jun-01 Budget transaction Expenses:Books $-10.00 $3660.00
+09-Jun-01 Budget transaction Expenses:Books $-10.00 $3540.00
+09-Jun-01 June Expenses:Books $60.00 $3600.00
+ Liabilities:Cards $60.00 $3660.00
09-Jun-30 End of June Expenses:Books $60.00 $3720.00
Liabilities:Cards $60.00 $3780.00
-09-Jul-01 July Expenses:Books $70.00 $3850.00
- Liabilities:Cards $70.00 $3920.00
-09-Jul-01 Budget transaction Expenses:Books $-10.00 $3910.00
+09-Jul-01 Budget transaction Expenses:Books $-10.00 $3770.00
+09-Jul-01 July Expenses:Books $70.00 $3840.00
+ Liabilities:Cards $70.00 $3910.00
09-Jul-31 End of July Expenses:Books $70.00 $3980.00
Liabilities:Cards $70.00 $4050.00
-09-Aug-01 August Expenses:Books $80.00 $4130.00
- Liabilities:Cards $80.00 $4210.00
-09-Aug-01 Budget transaction Expenses:Books $-10.00 $4200.00
+09-Aug-01 Budget transaction Expenses:Books $-10.00 $4040.00
+09-Aug-01 August Expenses:Books $80.00 $4120.00
+ Liabilities:Cards $80.00 $4200.00
09-Aug-31 End of August Expenses:Books $80.00 $4280.00
Liabilities:Cards $80.00 $4360.00
-09-Sep-01 September Expenses:Books $90.00 $4450.00
- Liabilities:Cards $90.00 $4540.00
-09-Sep-01 Budget transaction Expenses:Books $-10.00 $4530.00
+09-Sep-01 Budget transaction Expenses:Books $-10.00 $4350.00
+09-Sep-01 September Expenses:Books $90.00 $4440.00
+ Liabilities:Cards $90.00 $4530.00
09-Sep-30 End of September Expenses:Books $90.00 $4620.00
Liabilities:Cards $90.00 $4710.00
-09-Oct-01 October Expenses:Books $100.00 $4810.00
- Liabilities:Cards $100.00 $4910.00
-09-Oct-01 Budget transaction Expenses:Books $-10.00 $4900.00
+09-Oct-01 Budget transaction Expenses:Books $-10.00 $4700.00
+09-Oct-01 October Expenses:Books $100.00 $4800.00
+ Liabilities:Cards $100.00 $4900.00
09-Oct-31 End of October Expenses:Books $100.00 $5000.00
Liabilities:Cards $100.00 $5100.00
-09-Nov-01 November Expenses:Books $110.00 $5210.00
- Liabilities:Cards $110.00 $5320.00
-09-Nov-01 Budget transaction Expenses:Books $-10.00 $5310.00
+09-Nov-01 Budget transaction Expenses:Books $-10.00 $5090.00
+09-Nov-01 November Expenses:Books $110.00 $5200.00
+ Liabilities:Cards $110.00 $5310.00
09-Nov-30 End of November Expenses:Books $110.00 $5420.00
Liabilities:Cards $110.00 $5530.00
-09-Dec-01 December Expenses:Books $120.00 $5650.00
- Liabilities:Cards $120.00 $5770.00
-09-Dec-01 Budget transaction Expenses:Books $-10.00 $5760.00
+09-Dec-01 Budget transaction Expenses:Books $-10.00 $5520.00
+09-Dec-01 December Expenses:Books $120.00 $5640.00
+ Liabilities:Cards $120.00 $5760.00
09-Dec-31 End of December Expenses:Books $120.00 $5880.00
Liabilities:Cards $120.00 $6000.00
>>>2
diff --git a/test/baseline/opt-anon.test b/test/baseline/opt-anon.test
index f9244451..6fe6b75f 100644
--- a/test/baseline/opt-anon.test
+++ b/test/baseline/opt-anon.test
@@ -4,8 +4,8 @@ reg --anon
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
Income:Dividends:Vanguard:VMMXX $-0.35
>>>1
-07-Feb-02 6a93dcb3 20:5d:27:988a9c3a 0.350 VMMXX 0.350 VMMXX
- 1c:b6:27:988a9c3a $-0.35 $-0.35
+07-Feb-02 6a93dcb3 da:20:5d:27:988a9c3a 0.350 VMMXX 0.350 VMMXX
+ da:1c:b6:27:988a9c3a $-0.35 $-0.35
0.350 VMMXX
>>>2
=== 0
diff --git a/test/baseline/opt-budget.test b/test/baseline/opt-budget.test
index 097d19d8..eb2ade9d 100644
--- a/test/baseline/opt-budget.test
+++ b/test/baseline/opt-budget.test
@@ -245,77 +245,77 @@ reg --budget books
Liabilities:Cards $120.00
Assets:Cash
>>>1
-08-Jan-01 January Expenses:Books $10.00 $10.00
-08-Jan-01 Budget transaction Expenses:Books $-10.00 0
+08-Jan-01 Budget transaction Expenses:Books $-10.00 $-10.00
+08-Jan-01 January Expenses:Books $10.00 0
08-Jan-31 End of January Expenses:Books $10.00 $10.00
-08-Feb-01 February Expenses:Books $20.00 $30.00
-08-Feb-01 Budget transaction Expenses:Books $-10.00 $20.00
+08-Feb-01 Budget transaction Expenses:Books $-10.00 0
+08-Feb-01 February Expenses:Books $20.00 $20.00
08-Feb-28 End of February Expenses:Books $20.00 $40.00
-08-Mar-01 March Expenses:Books $30.00 $70.00
-08-Mar-01 Budget transaction Expenses:Books $-10.00 $60.00
+08-Mar-01 Budget transaction Expenses:Books $-10.00 $30.00
+08-Mar-01 March Expenses:Books $30.00 $60.00
08-Mar-31 End of March Expenses:Books $30.00 $90.00
-08-Apr-01 April Expenses:Books $40.00 $130.00
-08-Apr-01 Budget transaction Expenses:Books $-10.00 $120.00
+08-Apr-01 Budget transaction Expenses:Books $-10.00 $80.00
+08-Apr-01 April Expenses:Books $40.00 $120.00
08-Apr-30 End of April Expenses:Books $40.00 $160.00
-08-May-01 May Expenses:Books $50.00 $210.00
-08-May-01 Budget transaction Expenses:Books $-10.00 $200.00
+08-May-01 Budget transaction Expenses:Books $-10.00 $150.00
+08-May-01 May Expenses:Books $50.00 $200.00
08-May-31 End of May Expenses:Books $50.00 $250.00
-08-Jun-01 June Expenses:Books $60.00 $310.00
-08-Jun-01 Budget transaction Expenses:Books $-10.00 $300.00
+08-Jun-01 Budget transaction Expenses:Books $-10.00 $240.00
+08-Jun-01 June Expenses:Books $60.00 $300.00
08-Jun-30 End of June Expenses:Books $60.00 $360.00
-08-Jul-01 July Expenses:Books $70.00 $430.00
-08-Jul-01 Budget transaction Expenses:Books $-10.00 $420.00
+08-Jul-01 Budget transaction Expenses:Books $-10.00 $350.00
+08-Jul-01 July Expenses:Books $70.00 $420.00
08-Jul-31 End of July Expenses:Books $70.00 $490.00
-08-Aug-01 August Expenses:Books $80.00 $570.00
-08-Aug-01 Budget transaction Expenses:Books $-10.00 $560.00
+08-Aug-01 Budget transaction Expenses:Books $-10.00 $480.00
+08-Aug-01 August Expenses:Books $80.00 $560.00
08-Aug-31 End of August Expenses:Books $80.00 $640.00
-08-Sep-01 September Expenses:Books $90.00 $730.00
-08-Sep-01 Budget transaction Expenses:Books $-10.00 $720.00
+08-Sep-01 Budget transaction Expenses:Books $-10.00 $630.00
+08-Sep-01 September Expenses:Books $90.00 $720.00
08-Sep-30 End of September Expenses:Books $90.00 $810.00
-08-Oct-01 October Expenses:Books $100.00 $910.00
-08-Oct-01 Budget transaction Expenses:Books $-10.00 $900.00
+08-Oct-01 Budget transaction Expenses:Books $-10.00 $800.00
+08-Oct-01 October Expenses:Books $100.00 $900.00
08-Oct-31 End of October Expenses:Books $100.00 $1000.00
-08-Nov-01 November Expenses:Books $110.00 $1110.00
-08-Nov-01 Budget transaction Expenses:Books $-10.00 $1100.00
+08-Nov-01 Budget transaction Expenses:Books $-10.00 $990.00
+08-Nov-01 November Expenses:Books $110.00 $1100.00
08-Nov-30 End of November Expenses:Books $110.00 $1210.00
-08-Dec-01 December Expenses:Books $120.00 $1330.00
-08-Dec-01 Budget transaction Expenses:Books $-10.00 $1320.00
+08-Dec-01 Budget transaction Expenses:Books $-10.00 $1200.00
+08-Dec-01 December Expenses:Books $120.00 $1320.00
08-Dec-31 End of December Expenses:Books $120.00 $1440.00
-09-Jan-01 January Expenses:Books $10.00 $1450.00
-09-Jan-01 Budget transaction Expenses:Books $-10.00 $1440.00
+09-Jan-01 Budget transaction Expenses:Books $-10.00 $1430.00
+09-Jan-01 January Expenses:Books $10.00 $1440.00
09-Jan-31 End of January Expenses:Books $10.00 $1450.00
-09-Feb-01 February Expenses:Books $20.00 $1470.00
-09-Feb-01 Budget transaction Expenses:Books $-10.00 $1460.00
+09-Feb-01 Budget transaction Expenses:Books $-10.00 $1440.00
+09-Feb-01 February Expenses:Books $20.00 $1460.00
09-Feb-28 End of February Expenses:Books $20.00 $1480.00
-09-Mar-01 March Expenses:Books $30.00 $1510.00
-09-Mar-01 Budget transaction Expenses:Books $-10.00 $1500.00
+09-Mar-01 Budget transaction Expenses:Books $-10.00 $1470.00
+09-Mar-01 March Expenses:Books $30.00 $1500.00
09-Mar-31 End of March Expenses:Books $30.00 $1530.00
-09-Apr-01 April Expenses:Books $40.00 $1570.00
-09-Apr-01 Budget transaction Expenses:Books $-10.00 $1560.00
+09-Apr-01 Budget transaction Expenses:Books $-10.00 $1520.00
+09-Apr-01 April Expenses:Books $40.00 $1560.00
09-Apr-30 End of April Expenses:Books $40.00 $1600.00
-09-May-01 May Expenses:Books $50.00 $1650.00
-09-May-01 Budget transaction Expenses:Books $-10.00 $1640.00
+09-May-01 Budget transaction Expenses:Books $-10.00 $1590.00
+09-May-01 May Expenses:Books $50.00 $1640.00
09-May-31 End of May Expenses:Books $50.00 $1690.00
-09-Jun-01 June Expenses:Books $60.00 $1750.00
-09-Jun-01 Budget transaction Expenses:Books $-10.00 $1740.00
+09-Jun-01 Budget transaction Expenses:Books $-10.00 $1680.00
+09-Jun-01 June Expenses:Books $60.00 $1740.00
09-Jun-30 End of June Expenses:Books $60.00 $1800.00
-09-Jul-01 July Expenses:Books $70.00 $1870.00
-09-Jul-01 Budget transaction Expenses:Books $-10.00 $1860.00
+09-Jul-01 Budget transaction Expenses:Books $-10.00 $1790.00
+09-Jul-01 July Expenses:Books $70.00 $1860.00
09-Jul-31 End of July Expenses:Books $70.00 $1930.00
-09-Aug-01 August Expenses:Books $80.00 $2010.00
-09-Aug-01 Budget transaction Expenses:Books $-10.00 $2000.00
+09-Aug-01 Budget transaction Expenses:Books $-10.00 $1920.00
+09-Aug-01 August Expenses:Books $80.00 $2000.00
09-Aug-31 End of August Expenses:Books $80.00 $2080.00
-09-Sep-01 September Expenses:Books $90.00 $2170.00
-09-Sep-01 Budget transaction Expenses:Books $-10.00 $2160.00
+09-Sep-01 Budget transaction Expenses:Books $-10.00 $2070.00
+09-Sep-01 September Expenses:Books $90.00 $2160.00
09-Sep-30 End of September Expenses:Books $90.00 $2250.00
-09-Oct-01 October Expenses:Books $100.00 $2350.00
-09-Oct-01 Budget transaction Expenses:Books $-10.00 $2340.00
+09-Oct-01 Budget transaction Expenses:Books $-10.00 $2240.00
+09-Oct-01 October Expenses:Books $100.00 $2340.00
09-Oct-31 End of October Expenses:Books $100.00 $2440.00
-09-Nov-01 November Expenses:Books $110.00 $2550.00
-09-Nov-01 Budget transaction Expenses:Books $-10.00 $2540.00
+09-Nov-01 Budget transaction Expenses:Books $-10.00 $2430.00
+09-Nov-01 November Expenses:Books $110.00 $2540.00
09-Nov-30 End of November Expenses:Books $110.00 $2650.00
-09-Dec-01 December Expenses:Books $120.00 $2770.00
-09-Dec-01 Budget transaction Expenses:Books $-10.00 $2760.00
+09-Dec-01 Budget transaction Expenses:Books $-10.00 $2640.00
+09-Dec-01 December Expenses:Books $120.00 $2760.00
09-Dec-31 End of December Expenses:Books $120.00 $2880.00
>>>2
=== 0
diff --git a/test/manual/transaction-codes-1.test b/test/manual/transaction-codes-1.test
new file mode 100644
index 00000000..878c5cac
--- /dev/null
+++ b/test/manual/transaction-codes-1.test
@@ -0,0 +1,22 @@
+reg --columns=60 food and code xfer
+<<<
+2009/10/29 (XFER) Panera Bread
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/10/30 (DEP) Pay day!
+ Assets:Checking $20.00
+ Income
+
+2009/10/30 (XFER) Panera Bread
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/10/31 (559385768438A8D7) Panera Bread
+ Expenses:Food $4.50
+ Liabilities:Credit Card
+>>>1
+09-Oct-29 Panera Bread Expenses:Food $4.50 $4.50
+09-Oct-30 Panera Bread Expenses:Food $4.50 $9.00
+>>>2
+=== 0
diff --git a/test/manual/transaction-codes-2.test b/test/manual/transaction-codes-2.test
new file mode 100644
index 00000000..4e4c76cf
--- /dev/null
+++ b/test/manual/transaction-codes-2.test
@@ -0,0 +1,24 @@
+bal checking --set-reported-account=code
+<<<
+2009/10/29 (XFER) Panera Bread
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/10/30 (DEP) Pay day!
+ Assets:Checking $20.00
+ Income
+
+2009/10/30 (XFER) Panera Bread
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/10/31 (559385768438A8D7) Panera Bread
+ Expenses:Food $4.50
+ Liabilities:Credit Card
+>>>1
+ $20.00 DEP
+ $-9.00 XFER
+--------------------
+ $11.00
+>>>2
+=== 0
diff --git a/test/manual/transaction-notes-1.test b/test/manual/transaction-notes-1.test
new file mode 100644
index 00000000..d3fab3b6
--- /dev/null
+++ b/test/manual/transaction-notes-1.test
@@ -0,0 +1,24 @@
+reg --columns=60 food and note eat
+<<<
+2009/11/01 Panera Bread ; Got something to eat
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Coffee
+ ; Let’s see, I ate a whole bunch of stuff, drank some coffee,
+ ; pondered a bagel, then decided against the donut.
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Dining
+ ; :Eating:
+ ; This is another long note, after the metadata.
+ Expenses:Food $4.50
+ Assets:Checking
+>>>1
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-01 Panera Bread Expenses:Food $4.50 $9.00
+>>>2
+=== 0
diff --git a/test/manual/transaction-notes-2.test b/test/manual/transaction-notes-2.test
new file mode 100644
index 00000000..b7a258e0
--- /dev/null
+++ b/test/manual/transaction-notes-2.test
@@ -0,0 +1,23 @@
+reg --columns=60 food and tag eating
+<<<
+2009/11/01 Panera Bread ; Got something to eat
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Coffee
+ ; Let’s see, I ate a whole bunch of stuff, drank some coffee,
+ ; pondered a bagel, then decided against the donut.
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Dining
+ ; :Eating:
+ ; This is another long note, after the metadata.
+ Expenses:Food $4.50
+ Assets:Checking
+>>>1
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+>>>2
+=== 0
diff --git a/test/manual/transaction-notes-3.test b/test/manual/transaction-notes-3.test
new file mode 100644
index 00000000..9d532d5f
--- /dev/null
+++ b/test/manual/transaction-notes-3.test
@@ -0,0 +1,23 @@
+reg --columns=60 food and tag type=dining
+<<<
+2009/11/01 Panera Bread ; Got something to eat
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Coffee
+ ; Let’s see, I ate a whole bunch of stuff, drank some coffee,
+ ; pondered a bagel, then decided against the donut.
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Dining
+ ; :Eating:
+ ; This is another long note, after the metadata.
+ Expenses:Food $4.50
+ Assets:Checking
+>>>1
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+>>>2
+=== 0
diff --git a/test/manual/transaction-notes-4.test b/test/manual/transaction-notes-4.test
new file mode 100644
index 00000000..516094c7
--- /dev/null
+++ b/test/manual/transaction-notes-4.test
@@ -0,0 +1,27 @@
+bal food and tag type --set-reported-account='"Tags:" + tag("Type")'
+<<<
+2009/11/01 Panera Bread ; Got something to eat
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Coffee
+ ; Let’s see, I ate a whole bunch of stuff, drank some coffee,
+ ; pondered a bagel, then decided against the donut.
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Dining
+ ; :Eating:
+ ; This is another long note, after the metadata.
+ Expenses:Food $4.50
+ Assets:Checking
+>>>1
+ $9.00 Tags
+ $4.50 Coffee
+ $4.50 Dining
+--------------------
+ $9.00
+>>>2
+=== 0
diff --git a/test/manual/transaction-status-1.test b/test/manual/transaction-status-1.test
new file mode 100644
index 00000000..4bdf893a
--- /dev/null
+++ b/test/manual/transaction-status-1.test
@@ -0,0 +1,19 @@
+reg --columns=60 food
+<<<
+2009/10/31 * Panera Bread
+ Expenses:Food $4.50
+ Assets
+
+2009/11/01 ! Panera Bread
+ Expenses:Food $4.50
+ Assets
+
+2009/11/02 Panera Bread
+ Expenses:Food $4.50
+ Assets
+>>>1
+09-Oct-31 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-01 Panera Bread Expenses:Food $4.50 $9.00
+09-Nov-02 Panera Bread Expenses:Food $4.50 $13.50
+>>>2
+=== 0
diff --git a/test/manual/transaction-status-2.test b/test/manual/transaction-status-2.test
new file mode 100644
index 00000000..dbbb04ae
--- /dev/null
+++ b/test/manual/transaction-status-2.test
@@ -0,0 +1,17 @@
+reg --columns=60 food --cleared
+<<<
+2009/10/31 * Panera Bread
+ Expenses:Food $4.50
+ Assets
+
+2009/11/01 ! Panera Bread
+ Expenses:Food $4.50
+ Assets
+
+2009/11/02 Panera Bread
+ Expenses:Food $4.50
+ Assets
+>>>1
+09-Oct-31 Panera Bread Expenses:Food $4.50 $4.50
+>>>2
+=== 0
diff --git a/test/manual/transaction-status-3.test b/test/manual/transaction-status-3.test
new file mode 100644
index 00000000..1e6467ef
--- /dev/null
+++ b/test/manual/transaction-status-3.test
@@ -0,0 +1,18 @@
+reg --columns=60 food --uncleared
+<<<
+2009/10/31 * Panera Bread
+ Expenses:Food $4.50
+ Assets
+
+2009/11/01 ! Panera Bread
+ Expenses:Food $4.50
+ Assets
+
+2009/11/02 Panera Bread
+ Expenses:Food $4.50
+ Assets
+>>>1
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-02 Panera Bread Expenses:Food $4.50 $9.00
+>>>2
+=== 0
diff --git a/test/manual/transaction-status-4.test b/test/manual/transaction-status-4.test
new file mode 100644
index 00000000..5275eec3
--- /dev/null
+++ b/test/manual/transaction-status-4.test
@@ -0,0 +1,17 @@
+reg --columns=60 food --pending
+<<<
+2009/10/31 * Panera Bread
+ Expenses:Food $4.50
+ Assets
+
+2009/11/01 ! Panera Bread
+ Expenses:Food $4.50
+ Assets
+
+2009/11/02 Panera Bread
+ Expenses:Food $4.50
+ Assets
+>>>1
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+>>>2
+=== 0
diff --git a/test/regress/25A099C9.test b/test/regress/25A099C9.test
new file mode 100644
index 00000000..fb5613e2
--- /dev/null
+++ b/test/regress/25A099C9.test
@@ -0,0 +1,19 @@
+-f $sourcepath/src/amount.h reg
+<<<
+>>>1
+>>>2
+While parsing file "$sourcepath/src/amount.h", line 67:
+Error: No quantity specified for amount
+While parsing file "$sourcepath/src/amount.h", line 707:
+Error: Invalid date/time: line amount_t amoun
+While parsing file "$sourcepath/src/amount.h", line 713:
+Error: Invalid date/time: line string amount_
+While parsing file "$sourcepath/src/amount.h", line 719:
+Error: Invalid date/time: line string amount_
+While parsing file "$sourcepath/src/amount.h", line 725:
+Error: Invalid date/time: line string amount_
+While parsing file "$sourcepath/src/amount.h", line 731:
+Error: Invalid date/time: line std::ostream&
+While parsing file "$sourcepath/src/amount.h", line 738:
+Error: Invalid date/time: line std::istream&
+=== 7
diff --git a/test/regress/373540CC.test b/test/regress/373540CC.test
new file mode 100644
index 00000000..5c589ec9
--- /dev/null
+++ b/test/regress/373540CC.test
@@ -0,0 +1,9 @@
+bal --sort total --flat -X '$' not '(Income|Liabilities)'
+<<<
+2004/05/27 Book Store
+ Expenses:Books 20 BOOK @ $10
+ Liabilities:MasterCard $-200.00
+>>>1
+ $200.00 Expenses:Books
+>>>2
+=== 0
diff --git a/test/regress/5F1BAF17.test b/test/regress/5F1BAF17.test
new file mode 100644
index 00000000..f52ffb86
--- /dev/null
+++ b/test/regress/5F1BAF17.test
@@ -0,0 +1,130 @@
+bal da39 --flat --sort amount --display-total amount
+<<<
+2006/02/16 b5f40e96
+ da39a3ee:8d437dbf:ee2bf9bd:f61e33bf $713.35
+ Assets
+
+2006/03/27 c7ab1f2d
+ da39a3ee:8d437dbf:ee2bf9bd:9b69a35a $139.62
+ Assets
+
+2006/03/30 f32ea1dc
+ da39a3ee:8d437dbf:ee2bf9bd:d219c681 $1,600.00
+ Assets
+
+2006/04/21 d449d51e
+ da39a3ee:8d437dbf:ee2bf9bd:75b04b88 $698.10
+ Assets
+
+2006/05/02 b02f8323
+ da39a3ee:8d437dbf:ee2bf9bd $42.22
+ Assets
+
+2006/05/05 2a6f6850
+ da39a3ee:8d437dbf:ee2bf9bd:75b04b88:b3850e04 $2,468.00
+ Assets
+
+2006/05/09 59f92263
+ da39a3ee:8d437dbf:ee2bf9bd:071c929a $132.82
+ Assets
+
+2006/05/18 f78a7a51
+ da39a3ee:8d437dbf:ee2bf9bd:e97de844 $368.05
+ Assets
+
+2006/05/19 f35c594c
+ da39a3ee:8d437dbf:ee2bf9bd:d4e7d7d3 $386.62
+ Assets
+
+2006/05/22 0233a991
+ da39a3ee:8d437dbf:ee2bf9bd:9c6e5a3f $141.98
+ Assets
+
+2006/05/23 56ccae7f
+ da39a3ee:8d437dbf:ee2bf9bd:d31d367b $81.78
+ Assets
+
+2006/05/24 d449d51e
+ da39a3ee:8d437dbf:ee2bf9bd:75b04b88 $65.00
+ Assets
+
+2006/05/25 dc833c91
+ da39a3ee:8d437dbf:ee2bf9bd:d31d367b $34.37
+ Assets
+
+2006/05/31 6822b496
+ da39a3ee:8d437dbf:ee2bf9bd:e97de844 $41.78
+ Assets
+
+2006/06/02 dff8ccb2
+ da39a3ee:8d437dbf:ee2bf9bd:14e351e1 $67.36
+ Assets
+
+2006/06/02 e1eb3f4b
+ da39a3ee:8d437dbf:ee2bf9bd:2c7a078f $14.00
+ Assets
+
+2006/06/04 feec73ea
+ da39a3ee:8d437dbf:ee2bf9bd:131260cb $144.99
+ Assets
+
+2006/06/04 e8f65e0a
+ da39a3ee:8d437dbf:ee2bf9bd:d219c681 $75.00
+ Assets
+
+2006/06/04 3fd43f7b
+ da39a3ee:8d437dbf:ee2bf9bd:9c4ba7d0 $239.59
+ Assets
+
+2006/06/06 754be754
+ da39a3ee:8d437dbf:ee2bf9bd:35b25929 $1,160.14
+ Assets
+
+2006/06/06 00c16d44
+ da39a3ee:8d437dbf:ee2bf9bd:e97de844 $78.45
+ Assets
+
+2006/06/08 e7b0b317
+ da39a3ee:8d437dbf:ee2bf9bd $443.00
+ Assets
+
+2006/07/17 a30c4c31
+ da39a3ee:8d437dbf:ee2bf9bd $880.80
+ Assets
+
+2006/08/08 e31a0cf9
+ da39a3ee:8d437dbf:ee2bf9bd $104.53
+ Assets
+
+2006/08/10 f0c0c688
+ da39a3ee:8d437dbf:ee2bf9bd $196.70
+ Assets
+
+2006/09/12 1bc59c63
+ da39a3ee:8d437dbf:ee2bf9bd $217.79
+ Assets
+
+2007/07/16 557e3a00
+ da39a3ee:8d437dbf:ee2bf9bd:f61e33bf $117.80
+ Assets
+>>>1
+ $14.00 da39a3ee:8d437dbf:ee2bf9bd:2c7a078f
+ $67.36 da39a3ee:8d437dbf:ee2bf9bd:14e351e1
+ $116.15 da39a3ee:8d437dbf:ee2bf9bd:d31d367b
+ $132.82 da39a3ee:8d437dbf:ee2bf9bd:071c929a
+ $139.62 da39a3ee:8d437dbf:ee2bf9bd:9b69a35a
+ $141.98 da39a3ee:8d437dbf:ee2bf9bd:9c6e5a3f
+ $144.99 da39a3ee:8d437dbf:ee2bf9bd:131260cb
+ $239.59 da39a3ee:8d437dbf:ee2bf9bd:9c4ba7d0
+ $386.62 da39a3ee:8d437dbf:ee2bf9bd:d4e7d7d3
+ $488.28 da39a3ee:8d437dbf:ee2bf9bd:e97de844
+ $763.10 da39a3ee:8d437dbf:ee2bf9bd:75b04b88
+ $831.15 da39a3ee:8d437dbf:ee2bf9bd:f61e33bf
+ $1,160.14 da39a3ee:8d437dbf:ee2bf9bd:35b25929
+ $1,675.00 da39a3ee:8d437dbf:ee2bf9bd:d219c681
+ $1,885.04 da39a3ee:8d437dbf:ee2bf9bd
+ $2,468.00 da39a3ee:8d437dbf:ee2bf9bd:75b04b88:b3850e04
+--------------------
+ 0
+>>>2
+=== 0
diff --git a/test/regress/7F3650FD.test b/test/regress/7F3650FD.test
new file mode 100644
index 00000000..0eb3a96f
--- /dev/null
+++ b/test/regress/7F3650FD.test
@@ -0,0 +1,50 @@
+period --now=2010/11/01 12/01
+<<<
+>>>1
+global details =>
+
+ start: 09-Dec-01
+ end: 09-Dec-02
+ factor: 1
+>>>2
+=== 0
+period --now=2010/11/01 10/01
+<<<
+>>>1
+global details =>
+
+ start: 10-Oct-01
+ end: 10-Oct-02
+ factor: 1
+>>>2
+=== 0
+period --now=2010/11/01 2009/10
+<<<
+>>>1
+global details =>
+
+ start: 09-Oct-01
+ end: 09-Nov-01
+ factor: 1
+>>>2
+=== 0
+period --now=2010/11/01 2009/10/01
+<<<
+>>>1
+global details =>
+
+ start: 09-Oct-01
+ end: 09-Oct-02
+ factor: 1
+>>>2
+=== 0
+period --now=2010/11/01 2009
+<<<
+>>>1
+global details =>
+
+ start: 09-Jan-01
+ end: 10-Jan-01
+ factor: 1
+>>>2
+=== 0
diff --git a/test/regress/8254755E.test b/test/regress/8254755E.test
new file mode 100644
index 00000000..26baf52d
--- /dev/null
+++ b/test/regress/8254755E.test
@@ -0,0 +1,20 @@
+bal --flat food:out
+<<<
+~ Monthly
+ Expenses:Auto:Fuel $120.00
+ Expenses:Food:Out $100.00
+ Expenses:Food:Groceries $350.00
+ Assets
+
+2009/11/01
+ Expenses:Food:Out $50.00
+ Assets
+>>>1
+ $50.00 Expenses:Food:Out
+>>>2
+=== 0
+bal --flat --budget food:out
+>>>1
+ $-50.00 Expenses:Food:Out
+>>>2
+=== 0
diff --git a/test/regress/D060256A.test b/test/regress/D060256A.test
new file mode 100644
index 00000000..26c30351
--- /dev/null
+++ b/test/regress/D060256A.test
@@ -0,0 +1,16 @@
+budget --now=2009/11/01 --end=2009/11/30
+<<<
+~ Monthly
+ Expenses:Food $500.00
+ Assets
+
+2009/11/01 Sample
+ Expenses:Food:Dining $20.00
+ Assets
+>>>1
+ $-20.00 $-500.00 $480.00 4% Assets
+ $20.00 $500.00 $-480.00 4% Expenses:Food
+------------ ------------ ------------ -----
+ 0 0 0 0
+>>>2
+=== 0
diff --git a/test/regress/E627C594.test b/test/regress/E627C594.test
new file mode 100644
index 00000000..0dfbf778
--- /dev/null
+++ b/test/regress/E627C594.test
@@ -0,0 +1,18 @@
+reg --forecast-while="d<[2010/03/01]" --now=2009/11/01
+<<<
+~ Monthly
+ Expenses:Food $500.00
+ Assets
+
+2009/11/01 Sample
+ Expenses:Food:Dining $20.00
+ Assets
+>>>1
+09-Nov-01 Sample Expenses:Food:Dining $20.00 $20.00
+ Assets $-20.00 0
+10-Jan-01 Forecast transaction Expenses:Food $500.00 $500.00
+10-Jan-01 Forecast transaction Assets $-500.00 0
+10-Feb-01 Forecast transaction Expenses:Food $500.00 $500.00
+10-Feb-01 Forecast transaction Assets $-500.00 0
+>>>2
+=== 0
diff --git a/test/regress/F559EC12.test b/test/regress/F559EC12.test
index 7900b60d..c8b686db 100644
--- a/test/regress/F559EC12.test
+++ b/test/regress/F559EC12.test
@@ -3,7 +3,11 @@ format "%-12(scrub(amount))"
>>>1
--- Context is first posting of the following transaction ---
2004/05/27 Book Store
+ ; This note applies to all postings. :SecondTag:
Expenses:Books 20 BOOK @ $10
+ ; Metadata: Some Value
+ ; :ExampleTag:
+ ; Here follows a note describing the posting.
Liabilities:MasterCard $-200.00
--- Input format string ---
@@ -20,7 +24,11 @@ format "%12(scrub(amount))"
>>>1
--- Context is first posting of the following transaction ---
2004/05/27 Book Store
+ ; This note applies to all postings. :SecondTag:
Expenses:Books 20 BOOK @ $10
+ ; Metadata: Some Value
+ ; :ExampleTag:
+ ; Here follows a note describing the posting.
Liabilities:MasterCard $-200.00
--- Input format string ---