diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/baseline/feat-value-expr.test | 2 | ||||
-rwxr-xr-x | test/convert.py | 2 | ||||
-rw-r--r-- | test/regress/1055.test | 26 | ||||
-rw-r--r-- | test/regress/1132.test | 16 | ||||
-rw-r--r-- | test/regress/550-584.test (renamed from test/input/spaces.dat) | 18 |
5 files changed, 62 insertions, 2 deletions
diff --git a/test/baseline/feat-value-expr.test b/test/baseline/feat-value-expr.test index 01f9780b..885fd194 100644 --- a/test/baseline/feat-value-expr.test +++ b/test/baseline/feat-value-expr.test @@ -77,7 +77,7 @@ account Expenses:Food5 2012-03-07 KFC Expenses:Food7 1 CAD - Assets:Cas7 + Assets:Cash7 2012-03-08 XACT Expenses:Food8 $1 diff --git a/test/convert.py b/test/convert.py index 857d4d30..34152de2 100755 --- a/test/convert.py +++ b/test/convert.py @@ -3,7 +3,7 @@ # convert.py: This script converts a Boost.Test unit test into an # equivalent Python unit test. # -# Copyright (c) 2003-2016, John Wiegley. All rights reserved. +# Copyright (c) 2003-2017, John Wiegley. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are diff --git a/test/regress/1055.test b/test/regress/1055.test new file mode 100644 index 00000000..e3e997fa --- /dev/null +++ b/test/regress/1055.test @@ -0,0 +1,26 @@ +2011-01-01 * Opening balance + Assets:Broker 250.00 GBP = 250.00 GBP + Equity:Opening balance -250.00 GBP + +2011-02-01 * Buy 1 AAA for 10.00 GBP + Assets:Broker 1 AAA = 1 AAA + Assets:Broker -10.00 GBP + +2011-03-01 * Buy 1 AAA for 10.00 GBP + Assets:Broker 1 AAA = 2 AAA + Assets:Broker -10.00 GBP + +2011-04-01 * Buy 1 BBB for 15.00 GBP + Assets:Broker 1 BBB = 1 BBB + Assets:Broker -15.00 GBP + +test bal + 2 AAA + 1 BBB + 215.00 GBP Assets:Broker + -250.00 GBP Equity:Opening balance +-------------------- + 2 AAA + 1 BBB + -35.00 GBP +end test diff --git a/test/regress/1132.test b/test/regress/1132.test new file mode 100644 index 00000000..d912ddcf --- /dev/null +++ b/test/regress/1132.test @@ -0,0 +1,16 @@ +1994/09/02=1994/08/25 * Joe + Actif:Courant:BnpCc 126,00 F + Actif:Remboursement:Autre -126,00 F = 0,00 F + +1994/10/20=1994/08/25 * (3551465) Bill + Actif:Remboursement:Autre 126,00 F + Actif:Courant:BnpCc + +test bal -> 1 +__ERROR__ +While parsing file "$FILE", line 3: +While parsing posting: + Actif:Remboursement:Autre -126,00 F = 0,00 F + ^^^^^^ +Error: Balance assertion off by 126,00 F (expected to see -126,00 F) +end test diff --git a/test/input/spaces.dat b/test/regress/550-584.test index 1ada1b61..1c3be3b8 100644 --- a/test/input/spaces.dat +++ b/test/regress/550-584.test @@ -53,3 +53,21 @@ ; COM commodity has three spaces after Expenses:misc 1 COM Assets:checking + +test payees +test +testcommodity +end test + +test reg --group-by "tag('test')" +spaces +11-Nov-28 test Expenses:misc $1 $1 +11-Nov-28 test Expenses:misc $2 $3 +11-Nov-28 test Expenses:misc $4 $7 +11-Nov-28 test Expenses:misc $8 $15 +end test + +test commodities +$ +COM +end test |