summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/14DB77E7.test18
-rw-r--r--test/regress/25A099C9.test12
-rw-r--r--test/regress/83B4A0E5.test43
-rw-r--r--test/regress/889BB167.test17
4 files changed, 84 insertions, 6 deletions
diff --git a/test/regress/14DB77E7.test b/test/regress/14DB77E7.test
new file mode 100644
index 00000000..ee155afb
--- /dev/null
+++ b/test/regress/14DB77E7.test
@@ -0,0 +1,18 @@
+D 1000.00 GBP
+
+;P 2011-01-01 EUR 0.8604 GBP
+P 2011-02-01 EUR 0.8576 GBP
+
+2011-01-31 * AdSense earnings
+ Assets:Receivable:AdSense 11.00 EUR
+ Income:AdSense
+
+2011-02-28 * AdSense earnings
+ Assets:Receivable:AdSense 10.00 EUR
+ Income:AdSense
+
+test reg income:adse -X GBP -H
+11-Jan-31 AdSense earnings Income:AdSense -11.00 EUR -11.00 EUR
+11-Feb-01 Commodities revalued <Revalued> -9.43 GBP -9.43 GBP
+11-Feb-28 AdSense earnings Income:AdSense -8.58 GBP -18.01 GBP
+end test
diff --git a/test/regress/25A099C9.test b/test/regress/25A099C9.test
index 48b6814e..418b77c8 100644
--- a/test/regress/25A099C9.test
+++ b/test/regress/25A099C9.test
@@ -2,16 +2,16 @@ test -f $sourcepath/src/amount.h reg -> 7
__ERROR__
While parsing file "$sourcepath/src/amount.h", line 66:
Error: No quantity specified for amount
-While parsing file "$sourcepath/src/amount.h", line 731:
+While parsing file "$sourcepath/src/amount.h", line 734:
Error: Invalid date/time: line amount_t amoun
-While parsing file "$sourcepath/src/amount.h", line 737:
+While parsing file "$sourcepath/src/amount.h", line 740:
Error: Invalid date/time: line string amount_
-While parsing file "$sourcepath/src/amount.h", line 743:
+While parsing file "$sourcepath/src/amount.h", line 746:
Error: Invalid date/time: line string amount_
-While parsing file "$sourcepath/src/amount.h", line 749:
+While parsing file "$sourcepath/src/amount.h", line 752:
Error: Invalid date/time: line string amount_
-While parsing file "$sourcepath/src/amount.h", line 755:
+While parsing file "$sourcepath/src/amount.h", line 758:
Error: Invalid date/time: line std::ostream&
-While parsing file "$sourcepath/src/amount.h", line 762:
+While parsing file "$sourcepath/src/amount.h", line 765:
Error: Invalid date/time: line std::istream&
end test
diff --git a/test/regress/83B4A0E5.test b/test/regress/83B4A0E5.test
new file mode 100644
index 00000000..f9402a2d
--- /dev/null
+++ b/test/regress/83B4A0E5.test
@@ -0,0 +1,43 @@
+P 2012-03-01 EUR $2
+P 2012-03-01 GBP $2
+
+2012-03-05 KFC
+ Expenses:Food 10 EUR
+ Assets:Cash
+
+2012-03-10 KFC
+ Expenses:Food 10 GBP
+ Assets:Cash
+
+test reg food
+12-Mar-05 KFC Expenses:Food 10 EUR 10 EUR
+12-Mar-10 KFC Expenses:Food 10 GBP 10 EUR
+ 10 GBP
+end test
+
+test reg food -V
+12-Mar-05 KFC Expenses:Food $20 $20
+12-Mar-10 KFC Expenses:Food $20 $40
+end test
+
+test reg food -X '$'
+12-Mar-05 KFC Expenses:Food $20 $20
+12-Mar-10 KFC Expenses:Food $20 $40
+end test
+
+test reg food -X '$,GBP'
+12-Mar-05 KFC Expenses:Food $20 $20
+12-Mar-10 KFC Expenses:Food 10 GBP $20
+ 10 GBP
+end test
+
+test reg food -X '$!,GBP'
+12-Mar-05 KFC Expenses:Food $20 $20
+12-Mar-10 KFC Expenses:Food $20 $40
+end test
+
+test reg food -X '$,EUR'
+12-Mar-05 KFC Expenses:Food 10 EUR 10 EUR
+12-Mar-10 KFC Expenses:Food $20 $20
+ 10 EUR
+end test
diff --git a/test/regress/889BB167.test b/test/regress/889BB167.test
new file mode 100644
index 00000000..02e25ab6
--- /dev/null
+++ b/test/regress/889BB167.test
@@ -0,0 +1,17 @@
+D 1000.00 GBP
+
+P 2011-01-01 EUR 0.8604 GBP
+P 2011-02-01 EUR 0.8576 GBP
+
+2011-01-31 * AdSense earnings
+ Assets:Receivable:AdSense 11.00 EUR
+ Income:AdSense
+
+2011-02-28 * AdSense earnings
+ Assets:Receivable:AdSense 10.00 EUR
+ Income:AdSense
+
+test reg income:adse -X GBP -H
+11-Jan-31 AdSense earnings Income:AdSense -9.46 GBP -9.46 GBP
+11-Feb-28 AdSense earnings Income:AdSense -8.58 GBP -18.04 GBP
+end test