diff options
-rw-r--r-- | test/baseline/dir-alias-fail.test | 12 | ||||
-rw-r--r-- | test/baseline/dir-alias.test | 31 |
2 files changed, 43 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.test b/test/baseline/dir-alias.test new file mode 100644 index 00000000..ee363052 --- /dev/null +++ b/test/baseline/dir-alias.test @@ -0,0 +1,31 @@ +alias Cash=Assets:Cash +alias fast-food=food:FastFood +alias food=Expenses:Food + +2012-02-27 KFC + fast-food $20.00 + Assets:Cash + +2012-02-28 KFC + fast-food $20.00 + Assets:Cash + +2012-02-29 KFC + fast-food $25.00 + Assets:Cash + +2012-02-29 KFC + fast-food $25.00 + Assets:Cash + +test reg +12-Feb-27 KFC Expenses:Food:FastFood $20.00 $20.00 + Assets:Cash $-20.00 0 +12-Feb-28 KFC Expenses:Food:FastFood $20.00 $20.00 + Assets:Cash $-20.00 0 +12-Feb-29 KFC Expenses:Food:FastFood $25.00 $25.00 + Assets:Cash $-25.00 0 +12-Feb-29 KFC Expenses:Food:FastFood $25.00 $25.00 + Assets:Cash $-25.00 0 +end test + |