diff options
author | Rahix <rahix@rahix.de> | 2020-05-08 11:17:47 +0200 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2020-05-09 10:51:29 +0800 |
commit | cddf610a219cc973b380cb8d0aae92f407095c93 (patch) | |
tree | 18ff23bd84c3589335b7b831e077dde18b403ca1 /test/regress/1894_1.test | |
parent | 869302ae9ce303b532fa4700f78d208c3bd89310 (diff) | |
download | fork-ledger-cddf610a219cc973b380cb8d0aae92f407095c93.tar.gz fork-ledger-cddf610a219cc973b380cb8d0aae92f407095c93.tar.bz2 fork-ledger-cddf610a219cc973b380cb8d0aae92f407095c93.zip |
Add regression tests for issue #1894
Add tests for wrong behavior caused by commit 49b07a1c1948 ("Correction
to the way parens are parsed in query expressions") which was reverted
with commit 869302ae9ce3. The bug report was issue #1894.
Diffstat (limited to 'test/regress/1894_1.test')
-rw-r--r-- | test/regress/1894_1.test | 16 |
1 files changed, 16 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 |