summaryrefslogtreecommitdiff
path: root/test/baseline/opt-only.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-21 20:33:30 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-21 20:33:30 +0100
commit127e5e7ad287d7436ca14d815ac777aba9ee7417 (patch)
treeb29a9c2e60d4b6f1b9f1f4ed7fdbe2446d709261 /test/baseline/opt-only.test
parent8cb80185d515fe158a1858dd832ff9bc0f96e4a0 (diff)
downloadfork-ledger-127e5e7ad287d7436ca14d815ac777aba9ee7417.tar.gz
fork-ledger-127e5e7ad287d7436ca14d815ac777aba9ee7417.tar.bz2
fork-ledger-127e5e7ad287d7436ca14d815ac777aba9ee7417.zip
Added baseline test for --only
Diffstat (limited to 'test/baseline/opt-only.test')
-rw-r--r--test/baseline/opt-only.test236
1 files changed, 236 insertions, 0 deletions
diff --git a/test/baseline/opt-only.test b/test/baseline/opt-only.test
new file mode 100644
index 00000000..9728edae
--- /dev/null
+++ b/test/baseline/opt-only.test
@@ -0,0 +1,236 @@
+reg books --monthly --limit='amount > $100'
+<<<
+2008/01/01 January
+ Expenses:Books $10.00
+ Assets:Cash
+
+2008/01/31 End of January
+ Expenses:Books $10.00
+ Assets:Cash
+
+2008/02/01 February
+ Expenses:Books $20.00
+ Assets:Cash
+
+2008/02/28 End of February
+ Expenses:Books $20.00
+ Assets:Cash
+
+2008/03/01 March
+ Expenses:Books $30.00
+ Assets:Cash
+
+2008/03/31 End of March
+ Expenses:Books $30.00
+ Assets:Cash
+
+2008/04/01 April
+ Expenses:Books $40.00
+ Assets:Cash
+
+2008/04/30 End of April
+ Expenses:Books $40.00
+ Assets:Cash
+
+2008/05/01 May
+ Expenses:Books $50.00
+ Assets:Cash
+
+2008/05/31 End of May
+ Expenses:Books $50.00
+ Assets:Cash
+
+2008/06/01 June
+ Expenses:Books $60.00
+ Assets:Cash
+
+2008/06/30 End of June
+ Expenses:Books $60.00
+ Assets:Cash
+
+2008/07/01 July
+ Expenses:Books $70.00
+ Assets:Cash
+
+2008/07/31 End of July
+ Expenses:Books $70.00
+ Assets:Cash
+
+2008/08/01 August
+ Expenses:Books $80.00
+ Assets:Cash
+
+2008/08/31 End of August
+ Expenses:Books $80.00
+ Assets:Cash
+
+2008/09/01 September
+ Expenses:Books $90.00
+ Assets:Cash
+
+2008/09/30 End of September
+ Expenses:Books $90.00
+ Assets:Cash
+
+2008/10/01 October
+ Expenses:Books $100.00
+ Assets:Cash
+
+2008/10/31 End of October
+ Expenses:Books $100.00
+ Assets:Cash
+
+2008/11/01 November
+ Expenses:Books $110.00
+ Assets:Cash
+
+2008/11/30 End of November
+ Expenses:Books $110.00
+ Assets:Cash
+
+2008/12/01 December
+ Expenses:Books $120.00
+ Assets:Cash
+
+2008/12/31 End of December
+ Expenses:Books $120.00
+ Assets:Cash
+
+2009/01/01 January
+ Expenses:Books $10.00
+ Assets:Cash
+
+2009/01/31 End of January
+ Expenses:Books $10.00
+ Assets:Cash
+
+2009/02/01 February
+ Expenses:Books $20.00
+ Assets:Cash
+
+2009/02/28 End of February
+ Expenses:Books $20.00
+ Assets:Cash
+
+2009/03/01 March
+ Expenses:Books $30.00
+ Assets:Cash
+
+2009/03/31 End of March
+ Expenses:Books $30.00
+ Assets:Cash
+
+2009/04/01 April
+ Expenses:Books $40.00
+ Assets:Cash
+
+2009/04/30 End of April
+ Expenses:Books $40.00
+ Assets:Cash
+
+2009/05/01 May
+ Expenses:Books $50.00
+ Assets:Cash
+
+2009/05/31 End of May
+ Expenses:Books $50.00
+ Assets:Cash
+
+2009/06/01 June
+ Expenses:Books $60.00
+ Assets:Cash
+
+2009/06/30 End of June
+ Expenses:Books $60.00
+ Assets:Cash
+
+2009/07/01 July
+ Expenses:Books $70.00
+ Assets:Cash
+
+2009/07/31 End of July
+ Expenses:Books $70.00
+ Assets:Cash
+
+2009/08/01 August
+ Expenses:Books $80.00
+ Assets:Cash
+
+2009/08/31 End of August
+ Expenses:Books $80.00
+ Assets:Cash
+
+2009/09/01 September
+ Expenses:Books $90.00
+ Assets:Cash
+
+2009/09/30 End of September
+ Expenses:Books $90.00
+ Assets:Cash
+
+2009/10/01 October
+ Expenses:Books $100.00
+ Assets:Cash
+
+2009/10/31 End of October
+ Expenses:Books $100.00
+ Assets:Cash
+
+2009/11/01 November
+ Expenses:Books $110.00
+ Assets:Cash
+
+2009/11/30 End of November
+ Expenses:Books $110.00
+ Assets:Cash
+
+2009/12/01 December
+ Expenses:Books $120.00
+ Assets:Cash
+
+2009/12/31 End of December
+ Expenses:Books $120.00
+ Assets:Cash
+>>>1
+08-Nov-01 - 08-Nov-30 Expenses:Books $220.00 $220.00
+08-Dec-01 - 08-Dec-31 Expenses:Books $240.00 $460.00
+09-Nov-01 - 09-Nov-30 Expenses:Books $220.00 $680.00
+09-Dec-01 - 09-Dec-31 Expenses:Books $240.00 $920.00
+>>>2
+=== 0
+reg books --monthly --only='amount > $100'
+>>>1
+08-Jun-01 - 08-Jun-30 Expenses:Books $120.00 $120.00
+08-Jul-01 - 08-Jul-31 Expenses:Books $140.00 $260.00
+08-Aug-01 - 08-Aug-31 Expenses:Books $160.00 $420.00
+08-Sep-01 - 08-Sep-30 Expenses:Books $180.00 $600.00
+08-Oct-01 - 08-Oct-31 Expenses:Books $200.00 $800.00
+08-Nov-01 - 08-Nov-30 Expenses:Books $220.00 $1020.00
+08-Dec-01 - 08-Dec-31 Expenses:Books $240.00 $1260.00
+09-Jun-01 - 09-Jun-30 Expenses:Books $120.00 $1380.00
+09-Jul-01 - 09-Jul-31 Expenses:Books $140.00 $1520.00
+09-Aug-01 - 09-Aug-31 Expenses:Books $160.00 $1680.00
+09-Sep-01 - 09-Sep-30 Expenses:Books $180.00 $1860.00
+09-Oct-01 - 09-Oct-31 Expenses:Books $200.00 $2060.00
+09-Nov-01 - 09-Nov-30 Expenses:Books $220.00 $2280.00
+09-Dec-01 - 09-Dec-31 Expenses:Books $240.00 $2520.00
+>>>2
+=== 0
+reg books --monthly --display='amount > $100'
+>>>1
+08-Jun-01 - 08-Jun-30 Expenses:Books $120.00 $420.00
+08-Jul-01 - 08-Jul-31 Expenses:Books $140.00 $560.00
+08-Aug-01 - 08-Aug-31 Expenses:Books $160.00 $720.00
+08-Sep-01 - 08-Sep-30 Expenses:Books $180.00 $900.00
+08-Oct-01 - 08-Oct-31 Expenses:Books $200.00 $1100.00
+08-Nov-01 - 08-Nov-30 Expenses:Books $220.00 $1320.00
+08-Dec-01 - 08-Dec-31 Expenses:Books $240.00 $1560.00
+09-Jun-01 - 09-Jun-30 Expenses:Books $120.00 $1980.00
+09-Jul-01 - 09-Jul-31 Expenses:Books $140.00 $2120.00
+09-Aug-01 - 09-Aug-31 Expenses:Books $160.00 $2280.00
+09-Sep-01 - 09-Sep-30 Expenses:Books $180.00 $2460.00
+09-Oct-01 - 09-Oct-31 Expenses:Books $200.00 $2660.00
+09-Nov-01 - 09-Nov-30 Expenses:Books $220.00 $2880.00
+09-Dec-01 - 09-Dec-31 Expenses:Books $240.00 $3120.00
+>>>2
+=== 0