Skip to content

Commit

Permalink
test: add commission to a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
glorat committed Jan 21, 2024
1 parent 736a7f8 commit dccedd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/test/resources/unit.gainstrack
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
2006-11-01 fund Assets:Investment:Stocks 1000 GBP
2006-11-02 trade Assets:Investment:Stocks 50 FTSE @10 GBP
2006-11-15 yield Assets:Investment:Stocks FTSE 10 GBP
2006-11-02 trade Assets:Investment:Stocks 50 VWRL @10 GBP
2006-11-02 trade Assets:Investment:Stocks 50 VWRL @10 GBP C0.20 GBP
2006-11-15 yield Assets:Investment:Stocks VWRL 10 USD
2006-11-15 tfr Assets:Investment:Stocks Assets:Investment:Stocks 10 USD 9 GBP

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class TransactionAmountTest extends AnyFlatSpec {
assertBalance("Assets:Bank:England", "2005-11-01", 43025)
}
it should "handle dividend yield into trading cash account" in {
assertBalance("Assets:Investment:Stocks:GBP", "2006-11-15", 19)
assertBalance("Assets:Investment:Stocks:GBP", "2006-11-15", parseNumber("18.8"))
assertBalance("Assets:Investment:Stocks:USD", "2006-11-15", 0)
}

Expand Down

0 comments on commit dccedd7

Please sign in to comment.