diff options
Diffstat (limited to 'test/baseline')
-rw-r--r-- | test/baseline/feat-check.test | 18 | ||||
-rw-r--r-- | test/baseline/opt-meta-width.test | 14 | ||||
-rw-r--r-- | test/baseline/opt-meta.test | 14 | ||||
-rw-r--r-- | test/baseline/opt-now.test | 4 | ||||
-rw-r--r-- | test/baseline/opt-prepend-format.test | 17 | ||||
-rw-r--r-- | test/baseline/opt-prepend-width.test | 17 |
6 files changed, 84 insertions, 0 deletions
diff --git a/test/baseline/feat-check.test b/test/baseline/feat-check.test new file mode 100644 index 00000000..4029dfcd --- /dev/null +++ b/test/baseline/feat-check.test @@ -0,0 +1,18 @@ +bal +<<< += /Checking/ + check account =~ /Foo/ + +2010-06-24 Sample + Expenses:Food $100 + Assets:Checking + +check account("Assets:Checking").all(account =~ /Expense/) +>>> + $-100 Assets:Checking + $100 Expenses:Food +-------------------- + 0 +>>>2 +Warning: Transaction check failed: account =~ /Foo/ +Warning: Check failed: account("Assets:Checking").all(account =~ /Expense/) diff --git a/test/baseline/opt-meta-width.test b/test/baseline/opt-meta-width.test index e69de29b..51fd09cf 100644 --- a/test/baseline/opt-meta-width.test +++ b/test/baseline/opt-meta-width.test @@ -0,0 +1,14 @@ +reg --meta Sample --meta-width=15 +<<< +2004/05/27 (100) Credit card company + ; This is an xact note! + ; Sample: Value + Liabilities:MasterCard $20.00 + ; This is a posting note! + ; Sample: Another Value + ; :MyTag: + Assets:Bank:Checking + ; :AnotherTag: +>>> +Another Value 04-May-27 Credit card com.. Liab:MasterCard $20.00 $20.00 +Value As:Ban:Checking $-20.00 0 diff --git a/test/baseline/opt-meta.test b/test/baseline/opt-meta.test index e69de29b..85f53003 100644 --- a/test/baseline/opt-meta.test +++ b/test/baseline/opt-meta.test @@ -0,0 +1,14 @@ +reg --meta Sample +<<< +2004/05/27 (100) Credit card company + ; This is an xact note! + ; Sample: Value + Liabilities:MasterCard $20.00 + ; This is a posting note! + ; Sample: Another Value + ; :MyTag: + Assets:Bank:Checking + ; :AnotherTag: +>>> +Another Value04-May-27 Credit card company Liabilities:MasterCard $20.00 $20.00 +Value Assets:Bank:Checking $-20.00 0 diff --git a/test/baseline/opt-now.test b/test/baseline/opt-now.test index e69de29b..c517a24c 100644 --- a/test/baseline/opt-now.test +++ b/test/baseline/opt-now.test @@ -0,0 +1,4 @@ +eval today --now=2009/01/01 +<<< +>>> +2009/01/01 diff --git a/test/baseline/opt-prepend-format.test b/test/baseline/opt-prepend-format.test index e69de29b..35b6e8d0 100644 --- a/test/baseline/opt-prepend-format.test +++ b/test/baseline/opt-prepend-format.test @@ -0,0 +1,17 @@ +bal --prepend-format "%(account_base)" +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>> +VMMXX 0.350 VMMXX Assets:Investments:Vanguard:VMMXX +VMMXX $-0.35 Income:Dividends:Vanguard:VMMXX +-------------------- + $-0.35 + 0.350 VMMXX +=== 0 +reg --prepend-format "%(account_base)" +>>> +VMMXX07-Feb-02 RD VMMXX As:Inves:Vanguar:VMMXX 0.350 VMMXX 0.350 VMMXX +VMMXX In:Divid:Vanguar:VMMXX $-0.35 $-0.35 + 0.350 VMMXX diff --git a/test/baseline/opt-prepend-width.test b/test/baseline/opt-prepend-width.test index e69de29b..488f737b 100644 --- a/test/baseline/opt-prepend-width.test +++ b/test/baseline/opt-prepend-width.test @@ -0,0 +1,17 @@ +bal --prepend-format "%(account_base) " --prepend-width=10 +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>> + VMMXX 0.350 VMMXX Assets:Investments:Vanguard:VMMXX + VMMXX $-0.35 Income:Dividends:Vanguard:VMMXX + -------------------- + $-0.35 + 0.350 VMMXX +=== 0 +reg --prepend-format "%(account_base) " --prepend-width=10 +>>> + VMMXX 07-Feb-02 RD VMMXX As:Inves:Vanguar:VMMXX 0.350 VMMXX 0.350 VMMXX + VMMXX In:Divid:Vanguar:VMMXX $-0.35 $-0.35 + 0.350 VMMXX |