diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/1894_1.test | 16 | ||||
-rw-r--r-- | test/regress/1894_2.test | 21 |
2 files changed, 37 insertions, 0 deletions
diff --git a/test/regress/1894_1.test b/test/regress/1894_1.test new file mode 100644 index 00000000..739db459 --- /dev/null +++ b/test/regress/1894_1.test @@ -0,0 +1,16 @@ += /Expenses:Transportation/ and not expr "has_tag(/NOTAX/)" + Expenses:Tax 0.2 + $account -0.2 + +2020-05-06 * Test + Expenses:Transportation 200.00 EUR + Assets:Bank -200.00 EUR + +test bal + -200.00 EUR Assets:Bank + 200.00 EUR Expenses + 40.00 EUR Tax + 160.00 EUR Transportation +-------------------- + 0 +end test diff --git a/test/regress/1894_2.test b/test/regress/1894_2.test new file mode 100644 index 00000000..e2dc7d92 --- /dev/null +++ b/test/regress/1894_2.test @@ -0,0 +1,21 @@ += ^Expenses and expr "any(account =~ /^A:Assets/ and R)" + [A:Assets:Split] (amount / 2) + [B:Assets:Split] (-amount / 2) + += ^Expenses and expr "any(account =~ /^B:Assets/ and R)" + [B:Assets:Split] (amount / 2) + [A:Assets:Split] (-amount / 2) + +2020-05-08 * Test + Expenses:Transportation 200.00 EUR + A:Assets:Checking + +test bal + -100.00 EUR A:Assets + -200.00 EUR Checking + 100.00 EUR Split + -100.00 EUR B:Assets:Split + 200.00 EUR Expenses:Transportation +-------------------- + 0 +end test |