Add more tests
This commit is contained in:
parent
f3e320c98a
commit
362fad5925
3 changed files with 55 additions and 0 deletions
23
test/baseline/dir-commodity-alias.test
Normal file
23
test/baseline/dir-commodity-alias.test
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
commodity $
|
||||
alias USD
|
||||
|
||||
2012-03-12 * $
|
||||
A $10.00
|
||||
B
|
||||
|
||||
2012-03-12 * USD
|
||||
A 15.00 USD
|
||||
B
|
||||
|
||||
test bal
|
||||
25.00 $ A
|
||||
-25.00 $ B
|
||||
--------------------
|
||||
0
|
||||
end test
|
||||
|
||||
test reg a
|
||||
12-Mar-12 $ A 10.00 $ 10.00 $
|
||||
12-Mar-12 USD A 15.00 $ 25.00 $
|
||||
end test
|
||||
|
||||
18
test/regress/C19E4E9B.test
Normal file
18
test/regress/C19E4E9B.test
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
2012-01-01=2012-01-02 * Buy AAA
|
||||
A 1 AAA @ 1.00 EUR
|
||||
B -1.00 EUR
|
||||
|
||||
2012-02-01 * Buy AAA
|
||||
A 1 AAA @ 2.00 EUR
|
||||
B -2.00 EUR
|
||||
|
||||
test reg --format "%S: %d %P %t %T\n"
|
||||
$FILE: 2012/01/01 Buy AAA 1 AAA 1 AAA
|
||||
$FILE: 2012/01/01 Buy AAA -1.00 EUR 1 AAA
|
||||
-1.00 EUR
|
||||
$FILE: 2012/02/01 Buy AAA 1 AAA 2 AAA
|
||||
-1.00 EUR
|
||||
$FILE: 2012/02/01 Buy AAA -2.00 EUR 2 AAA
|
||||
-3.00 EUR
|
||||
end test
|
||||
|
||||
14
test/regress/EA18D948.test
Normal file
14
test/regress/EA18D948.test
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
2012-01-01 * Buy AAA
|
||||
A 1 AAA @ 1.00 EUR
|
||||
B -1.00 EUR
|
||||
|
||||
2012-02-01 * Buy AAA
|
||||
A 1 AAA @ 2.00 EUR
|
||||
B -2.00 EUR
|
||||
|
||||
test reg A -V -A
|
||||
12-Jan-01 Buy AAA A 1.00 EUR 1.00 EUR
|
||||
12-Feb-01 Commodities revalued <Revalued> 1.00 EUR 0
|
||||
12-Feb-01 Buy AAA A 2.00 EUR 2.00 EUR
|
||||
end test
|
||||
|
||||
Loading…
Add table
Reference in a new issue