diff options
author | Tavis Ormandy <taviso@gmail.com> | 2024-06-29 22:20:42 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-07-08 10:10:04 -0700 |
commit | be541cbae2190545c14989c020d9d0c14b711880 (patch) | |
tree | 9855f8919b31b36495a0bd75e69ab4ae240cc0c1 /test | |
parent | d4e3c6be764dfa0d70fa96847d1325bcd37bc0cc (diff) | |
download | fork-ledger-be541cbae2190545c14989c020d9d0c14b711880.tar.gz fork-ledger-be541cbae2190545c14989c020d9d0c14b711880.tar.bz2 fork-ledger-be541cbae2190545c14989c020d9d0c14b711880.zip |
Restore expr context after calc, #2330 #2343
Part of the expr_t::compile() process is to store the current scope, but
In post_t::add_to_value that scope is temporary and on the stack.
Restore the original context after that process is complete.
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/2330.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/regress/2330.test b/test/regress/2330.test new file mode 100644 index 00000000..aa49b1ff --- /dev/null +++ b/test/regress/2330.test @@ -0,0 +1,14 @@ +2024/01/01 * Test1 + Expenses:Test $1.00 + Assets:Checking +2024/01/01 * Test2 + Expenses:Test $1.00 + Assets:Checking + +test bal --group-by 'payee' --invert ^Expenses: +Test1 + $-1.00 Expenses:Test + +Test2 + $-1.00 Expenses:Test +end test |