summaryrefslogtreecommitdiff
path: root/test/baseline
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-02-26 16:06:52 -0600
committerJohn Wiegley <johnw@newartisans.com>2014-02-26 16:06:52 -0600
commiteddd03ed096fc97a9b4f252ebbef0dae84410240 (patch)
tree0e8ec4c444700fd996eefead32455ec7086bff08 /test/baseline
parentbc08eed3cb1bdb4f67d1b77273f3254d0cf13be2 (diff)
parent75b0a5d8ff22abeac8c4f502154159f998ffbe99 (diff)
downloadfork-ledger-eddd03ed096fc97a9b4f252ebbef0dae84410240.tar.gz
fork-ledger-eddd03ed096fc97a9b4f252ebbef0dae84410240.tar.bz2
fork-ledger-eddd03ed096fc97a9b4f252ebbef0dae84410240.zip
Merge pull request #247 from ecraven/master
Adding support for recursive aliases.
Diffstat (limited to 'test/baseline')
-rw-r--r--test/baseline/dir-alias-fail.test12
-rw-r--r--test/baseline/dir-alias-recursive.test12
-rw-r--r--test/baseline/dir-alias.test13
3 files changed, 37 insertions, 0 deletions
diff --git a/test/baseline/dir-alias-fail.test b/test/baseline/dir-alias-fail.test
new file mode 100644
index 00000000..e063a330
--- /dev/null
+++ b/test/baseline/dir-alias-fail.test
@@ -0,0 +1,12 @@
+--pedantic
+--explicit
+alias Foo=Foo
+
+2011-01-01 Test
+ Foo 10 EUR
+ Bar
+test source -> 1
+__ERROR__
+While parsing file "$FILE", line 3:
+Error: Illegal alias Foo=Foo
+end test
diff --git a/test/baseline/dir-alias-recursive.test b/test/baseline/dir-alias-recursive.test
new file mode 100644
index 00000000..d9addcd1
--- /dev/null
+++ b/test/baseline/dir-alias-recursive.test
@@ -0,0 +1,12 @@
+alias A=B:A
+alias B=C:B
+alias C=D:C
+
+2001-01-01 Test
+ A 10 EUR
+ Foo
+
+test reg --recursive-aliases
+01-Jan-01 Test D:C:B:A 10 EUR 10 EUR
+ Foo -10 EUR 0
+end test
diff --git a/test/baseline/dir-alias.test b/test/baseline/dir-alias.test
new file mode 100644
index 00000000..6245d944
--- /dev/null
+++ b/test/baseline/dir-alias.test
@@ -0,0 +1,13 @@
+alias A=B:A
+alias B=C:B
+alias C=D:C
+
+2001-01-01 Test
+ A 10 EUR
+ Foo
+
+test reg
+01-Jan-01 Test B:A 10 EUR 10 EUR
+ Foo -10 EUR 0
+end test
+