summaryrefslogtreecommitdiff
path: root/test/baseline/opt-limit.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-19 20:40:15 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-19 20:40:15 +0100
commit189bbd1546a945f778fc68957cc4a7699f55a099 (patch)
tree83d5e985d8683da95e5b5d5d674ba5afa85fdce9 /test/baseline/opt-limit.test
parentdabbd2c974ceca39889a565bbd0e618bfdd41a45 (diff)
downloadfork-ledger-189bbd1546a945f778fc68957cc4a7699f55a099.tar.gz
fork-ledger-189bbd1546a945f778fc68957cc4a7699f55a099.tar.bz2
fork-ledger-189bbd1546a945f778fc68957cc4a7699f55a099.zip
Added baseline test for --limit
Diffstat (limited to 'test/baseline/opt-limit.test')
-rw-r--r--test/baseline/opt-limit.test212
1 files changed, 212 insertions, 0 deletions
diff --git a/test/baseline/opt-limit.test b/test/baseline/opt-limit.test
new file mode 100644
index 00000000..dd302d1b
--- /dev/null
+++ b/test/baseline/opt-limit.test
@@ -0,0 +1,212 @@
+reg --limit='account =~ /Books/ and amount < 50'
+<<<
+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-Jan-01 January Expenses:Books $10.00 $10.00
+08-Jan-31 End of January Expenses:Books $10.00 $20.00
+08-Feb-01 February Expenses:Books $20.00 $40.00
+08-Feb-28 End of February Expenses:Books $20.00 $60.00
+08-Mar-01 March Expenses:Books $30.00 $90.00
+08-Mar-31 End of March Expenses:Books $30.00 $120.00
+08-Apr-01 April Expenses:Books $40.00 $160.00
+08-Apr-30 End of April Expenses:Books $40.00 $200.00
+09-Jan-01 January Expenses:Books $10.00 $210.00
+09-Jan-31 End of January Expenses:Books $10.00 $220.00
+09-Feb-01 February Expenses:Books $20.00 $240.00
+09-Feb-28 End of February Expenses:Books $20.00 $260.00
+09-Mar-01 March Expenses:Books $30.00 $290.00
+09-Mar-31 End of March Expenses:Books $30.00 $320.00
+09-Apr-01 April Expenses:Books $40.00 $360.00
+09-Apr-30 End of April Expenses:Books $40.00 $400.00
+>>>2
+=== 0