summaryrefslogtreecommitdiff
path: root/test/baseline
diff options
context:
space:
mode:
Diffstat (limited to 'test/baseline')
-rw-r--r--test/baseline/dir-alias.test9
-rw-r--r--test/baseline/feat-balance_assert-off.test18
-rw-r--r--test/baseline/opt-no-aliases.test20
-rw-r--r--test/baseline/opt-recursive-aliases.test (renamed from test/baseline/dir-alias-recursive.test)0
4 files changed, 47 insertions, 0 deletions
diff --git a/test/baseline/dir-alias.test b/test/baseline/dir-alias.test
index 6245d944..103868d8 100644
--- a/test/baseline/dir-alias.test
+++ b/test/baseline/dir-alias.test
@@ -2,12 +2,21 @@ alias A=B:A
alias B=C:B
alias C=D:C
+account Delta
+ alias D
+
2001-01-01 Test
A 10 EUR
Foo
+2001-01-01 Test
+ D 20 EUR
+ Foo
+
test reg
01-Jan-01 Test B:A 10 EUR 10 EUR
Foo -10 EUR 0
+01-Jan-01 Test Delta 20 EUR 20 EUR
+ Foo -20 EUR 0
end test
diff --git a/test/baseline/feat-balance_assert-off.test b/test/baseline/feat-balance_assert-off.test
new file mode 100644
index 00000000..fed24d4a
--- /dev/null
+++ b/test/baseline/feat-balance_assert-off.test
@@ -0,0 +1,18 @@
+
+2014-05-01 * Opening balance
+ Assets:Cash $100
+ Equity:Opening balance
+
+2014-05-10 * Spend money
+ Expenses:Foo $10
+ Assets:Cash -$10 = $80
+
+test bal -> 1
+__ERROR__
+While parsing file "$FILE", line 8:
+While parsing posting:
+ Assets:Cash -$10 = $80
+ ^^^
+Error: Balance assertion off by $-10 (expected to see $100)
+end test
+
diff --git a/test/baseline/opt-no-aliases.test b/test/baseline/opt-no-aliases.test
new file mode 100644
index 00000000..9deeca5d
--- /dev/null
+++ b/test/baseline/opt-no-aliases.test
@@ -0,0 +1,20 @@
+
+alias A=Foo
+
+account Bar
+ alias B
+
+2001-01-01 * Test
+ A 10 EUR
+ B
+
+test reg
+01-Jan-01 Test Foo 10 EUR 10 EUR
+ Bar -10 EUR 0
+end test
+
+test reg --no-aliases
+01-Jan-01 Test A 10 EUR 10 EUR
+ B -10 EUR 0
+end test
+
diff --git a/test/baseline/dir-alias-recursive.test b/test/baseline/opt-recursive-aliases.test
index d9addcd1..d9addcd1 100644
--- a/test/baseline/dir-alias-recursive.test
+++ b/test/baseline/opt-recursive-aliases.test