diff options
Diffstat (limited to 'test')
-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 | ||||
-rw-r--r-- | test/regress/7C44010B.test | 30 | ||||
-rw-r--r-- | test/regress/9EB10714.test | 43 | ||||
-rw-r--r-- | test/regress/A28CF697.test | 9 |
9 files changed, 166 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 diff --git a/test/regress/7C44010B.test b/test/regress/7C44010B.test new file mode 100644 index 00000000..f0437588 --- /dev/null +++ b/test/regress/7C44010B.test @@ -0,0 +1,30 @@ +reg -X F -J Assets +<<< +D 1000,00 € + +1994/1/1 Company + Assets:Checking 10000 F + Income:Salary + +1998/1/1 Transfer + Assets:US account 200 $ + Assets:Checking -1000 F + +P 1998/12/31 $ 6 F + +1999/1/1 Books + Expenses:Books 200 $ + Assets:US account + +P 2002/1/1 € 6,55957 F + +2002/1/1 Company + Assets:Checking 2000 € + Income:Salary +>>> +1994-01-01 10000 +1998-01-01 11000 +1998-01-01 10000 +1998-12-31 10200 +1999-01-01 9000 +2002-01-01 22119.14 diff --git a/test/regress/9EB10714.test b/test/regress/9EB10714.test new file mode 100644 index 00000000..9fd49b7a --- /dev/null +++ b/test/regress/9EB10714.test @@ -0,0 +1,43 @@ +reg -J -V ^Actif +<<< +1994/01/01 Achat Rialto + Actif:Fixe:Rialto 2 Rialto + Actif:BNP -120000 € + Actif:BNP 120000 € + Revenu:Salaire -120000 € + +P 1995/01/01 Rialto 70000 € +P 1996/01/01 Rialto 90000 € +P 1997/01/01 Rialto 90000 € +P 1998/01/01 Rialto 105000 € +P 1999/01/01 Rialto 110000 € +P 2000/01/01 Rialto 120000 € +P 2001/01/01 Rialto 130000 € +P 2002/01/01 Rialto 140000 € +P 2003/01/01 Rialto 150000 € +P 2004/01/01 Rialto 160000 € +P 2005/01/01 Rialto 170000 € +P 2006/01/01 Rialto 180000 € +P 2007/01/01 Rialto 190000 € +P 2008/01/01 Rialto 200000 € +P 2009/01/01 Rialto 210000 € +P 2010/01/01 Rialto 211000 € +>>> +1994-01-01 120000 +1994-01-01 0 +1994-01-01 120000 +1995-01-01 140000 +1996-01-01 180000 +1998-01-01 210000 +1999-01-01 220000 +2000-01-01 240000 +2001-01-01 260000 +2002-01-01 280000 +2003-01-01 300000 +2004-01-01 320000 +2005-01-01 340000 +2006-01-01 360000 +2007-01-01 380000 +2008-01-01 400000 +2009-01-01 420000 +2010-01-01 422000 diff --git a/test/regress/A28CF697.test b/test/regress/A28CF697.test new file mode 100644 index 00000000..513dbd97 --- /dev/null +++ b/test/regress/A28CF697.test @@ -0,0 +1,9 @@ +print +<<< +2010-02-05 * Flight SN2094 + Assets:Rewards:Airmiles 125 "M&M" + Income:Rewards +>>> +2010/02/05 * Flight SN2094 + Assets:Rewards:Airmiles 125 "M&M" + Income:Rewards |