From 4aedd413679cb0949ba5f4d5dd1a588e0610c1cf Mon Sep 17 00:00:00 2001 From: tripun Date: Sun, 10 Aug 2014 13:10:23 +0530 Subject: add test for --equity --- test/baseline/opt-equity.test | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 test/baseline/opt-equity.test diff --git a/test/baseline/opt-equity.test b/test/baseline/opt-equity.test new file mode 100644 index 00000000..d6696347 --- /dev/null +++ b/test/baseline/opt-equity.test @@ -0,0 +1,62 @@ +D 1000.00 GBP + +2011-03-04 Buy shares + Assets:Broker 2 AAA @ 0.90 GBP + Assets:Bank + +2011-03-05 Buy shares + Assets:Broker 2 AAA @ 1.00 GBP + Assets:Bank + +test reg --equity +11-Mar-05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Assets:Broker 4 AAA 4 AAA + -3.80 GBP + Equit:Opening Balances -4 AAA -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + +test reg assets --equity +11-Mar-05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Assets:Broker 4 AAA 4 AAA + -3.80 GBP + Equit:Opening Balances -4 AAA -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + +test reg assets:bank --equity +11-Mar-05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + +test reg assets:broker --equity +11-Mar-05 Opening Balances Assets:Broker 4 AAA 4 AAA + Equit:Opening Balances -4 AAA 0 +end test + +test reg --lot-prices --equity +11-Mar-05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Assets:Broker 2 AAA {0.90 GBP} 2 AAA {0.90 GBP} + -3.80 GBP + Assets:Broker 2 AAA {1.00 GBP} 2 AAA {0.90 GBP} + 2 AAA {1.00 GBP} + -3.80 GBP + Equit:Opening Balances -2 AAA {0.90 GBP} 2 AAA {1.00 GBP} + -3.80 GBP + Equit:Opening Balances -2 AAA {1.00 GBP} -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + +test reg --lots --date-format %Y/%m/%d --equity +2011/03/05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Assets:Broker 2 AAA {0.90 GBP} [2011/03/04] 2 AAA {0.90 GBP} [2011/03/04] + -3.80 GBP + Assets:Broker 2 AAA {1.00 GBP} [2011/03/05] 2 AAA {0.90 GBP} [2011/03/04] + 2 AAA {1.00 GBP} [2011/03/05] + -3.80 GBP + Equit:Opening Balances -2 AAA {0.90 GBP} [2011/03/04] 2 AAA {1.00 GBP} [2011/03/05] + -3.80 GBP + Equit:Opening Balances -2 AAA {1.00 GBP} [2011/03/05] -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + -- cgit v1.2.3 From 35c7c516fcd0760ef43a75340e4109ca23381131 Mon Sep 17 00:00:00 2001 From: tripun Date: Sun, 10 Aug 2014 15:03:07 +0530 Subject: removing test with reg --lot-prices --equity until issue is fixed --- test/baseline/opt-equity.test | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/baseline/opt-equity.test b/test/baseline/opt-equity.test index d6696347..80503e09 100644 --- a/test/baseline/opt-equity.test +++ b/test/baseline/opt-equity.test @@ -34,19 +34,6 @@ test reg assets:broker --equity Equit:Opening Balances -4 AAA 0 end test -test reg --lot-prices --equity -11-Mar-05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP - Assets:Broker 2 AAA {0.90 GBP} 2 AAA {0.90 GBP} - -3.80 GBP - Assets:Broker 2 AAA {1.00 GBP} 2 AAA {0.90 GBP} - 2 AAA {1.00 GBP} - -3.80 GBP - Equit:Opening Balances -2 AAA {0.90 GBP} 2 AAA {1.00 GBP} - -3.80 GBP - Equit:Opening Balances -2 AAA {1.00 GBP} -3.80 GBP - Equit:Opening Balances 3.80 GBP 0 -end test - test reg --lots --date-format %Y/%m/%d --equity 2011/03/05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP Assets:Broker 2 AAA {0.90 GBP} [2011/03/04] 2 AAA {0.90 GBP} [2011/03/04] -- cgit v1.2.3