tools: update paths in func. tests

This commit is contained in:
Simon Michael 2010-05-22 00:52:45 +00:00
parent 5451e3ad40
commit 191670c231
49 changed files with 63 additions and 63 deletions

View File

@ -152,7 +152,7 @@ hlinttest hlint:
unittest: unittest-builtin unittest: unittest-builtin
unittest-builtin: hledger unittest-builtin: hledger
@(./hledger test -v \ @(bin/hledger test -v \
&& echo $@ passed) || echo $@ FAILED && echo $@ passed) || echo $@ FAILED
# XXX doesn't rebuild on hledger source changes # XXX doesn't rebuild on hledger source changes

View File

@ -1,5 +1,5 @@
# add should prompt again when it gets a bad date # add should prompt again when it gets a bad date
./hledger -f nosuch.ledger add bin/hledger -f nosuch.ledger add
<<< <<<
2009/1/32 2009/1/32
>>>2 /date .*: date .*/ >>>2 /date .*: date .*/

View File

@ -1,4 +1,4 @@
./hledger -f nosuch.ledger add bin/hledger -f nosuch.ledger add
<<< <<<
>>>2 /date .*: description/ >>>2 /date .*: description/

View File

@ -1,4 +1,4 @@
./hledger -f nosuch.ledger add bin/hledger -f nosuch.ledger add
<<< <<<

View File

@ -1,5 +1,5 @@
# add's default amounts should not fail to balance due to precision # add's default amounts should not fail to balance due to precision
./hledger -f nosuch.ledger add bin/hledger -f nosuch.ledger add
<<< <<<
2010/1/1 2010/1/1
x x

View File

@ -1,4 +1,4 @@
./hledger -f - print bin/hledger -f - print
<<< <<<
2009/01/01 x 2009/01/01 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f - print bin/hledger -f - print
<<< <<<
2009/01/01 x 2009/01/01 x
; comment line within postings ; comment line within postings

View File

@ -1,6 +1,6 @@
# a commodity may contain/end with numbers, if double quoted # a commodity may contain/end with numbers, if double quoted
# 1. without quotes, fail. XXX parse error should be clearer here # 1. without quotes, fail. XXX parse error should be clearer here
./hledger -f- print bin/hledger -f- print
<<< <<<
2010-04-05 x 2010-04-05 x
a 10 DE0002635307 a 10 DE0002635307
@ -8,7 +8,7 @@
>>>2 /parse error.*unexpected "0"/ >>>2 /parse error.*unexpected "0"/
>>>= 1 >>>= 1
# 2. with quotes # 2. with quotes
./hledger -f- print bin/hledger -f- print
<<< <<<
2010-04-05 x 2010-04-05 x
a 10 "DE0002635307" a 10 "DE0002635307"

View File

@ -1,5 +1,5 @@
# a no-commodity amount with a price should work # a no-commodity amount with a price should work
./hledger -f - print bin/hledger -f - print
<<< <<<
2010/1/1 x 2010/1/1 x
a 1 @ $2 a 1 @ $2

View File

@ -1,5 +1,5 @@
# b amount with no decimal places, in middle, causes balance failure (0.6.1) # b amount with no decimal places, in middle, causes balance failure (0.6.1)
./hledger -f - print bin/hledger -f - print
<<< <<<
2009/1/1 x 2009/1/1 x
a $1.25 a $1.25

View File

@ -1,4 +1,4 @@
./hledger -f - balance -p 'in 2009' --effective bin/hledger -f - balance -p 'in 2009' --effective
<<< <<<
2009/1/1 x 2009/1/1 x
a 1 a 1

View File

@ -1,5 +1,5 @@
# #
./hledger -f - print --effective bin/hledger -f - print --effective
<<< <<<
2009/1/1=1/2 x 2009/1/1=1/2 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f - print bin/hledger -f - print
<<< <<<
2009/1/1=2010/1/1 x 2009/1/1=2010/1/1 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f - print --effective bin/hledger -f - print --effective
<<< <<<
2009/1/1=2010/1/1 x 2009/1/1=2010/1/1 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f - register --effective bin/hledger -f - register --effective
<<< <<<
2009/1/1=2010/1/1 x 2009/1/1=2010/1/1 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f - balance bin/hledger -f - balance
<<< <<<
2009/1/1 x 2009/1/1 x
aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa €1 aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa €1

View File

@ -1,4 +1,4 @@
./hledger -f- print bin/hledger -f- print
<<< <<<
2009/1/1 x 2009/1/1 x
aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa €1 aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa €1

View File

@ -1,4 +1,4 @@
./hledger -f- register bin/hledger -f- register
<<< <<<
2009/1/1 x aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa €1 2009/1/1 x aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa €1
b b

View File

@ -1,5 +1,5 @@
# an extra slash before [ silently disables the effective date in 0.6.1 # an extra slash before [ silently disables the effective date in 0.6.1
./hledger -f - print --effective -p 2009/1/2 bin/hledger -f - print --effective -p 2009/1/2
<<< <<<
2009/1/1/[=2009/1/2] x 2009/1/1/[=2009/1/2] x
a 1 a 1

View File

@ -1,5 +1,5 @@
# 1. account pattern with space # 1. account pattern with space
./hledger -f- register 'a a' bin/hledger -f- register 'a a'
<<< <<<
2010/3/1 x 2010/3/1 x
a a 1 a a 1
@ -8,7 +8,7 @@
2010/03/01 x a a 1 1 2010/03/01 x a a 1 1
# #
# 2. description pattern with space # 2. description pattern with space
./hledger -f- register desc:'x x' bin/hledger -f- register desc:'x x'
<<< <<<
2010/3/1 x 2010/3/1 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f - balance -E bin/hledger -f - balance -E
<<< <<<
2009/1/1 x 2009/1/1 x
a: 13 a: 13

View File

@ -1,4 +1,4 @@
./hledger -f - print bin/hledger -f - print
<<< <<<
2009-01-01 x 2009-01-01 x
a 2 a 2

View File

@ -1,11 +1,11 @@
# 1. accept a blank description # 1. accept a blank description
./hledger -f- bin/hledger -f-
<<< <<<
2010/1/1 2010/1/1
a 1 a 1
b b
# 2. same, but no separator space after the date # 2. same, but no separator space after the date
./hledger -f- bin/hledger -f-
<<< <<<
2010/1/1 2010/1/1
a 1 a 1

View File

@ -1,12 +1,12 @@
# dates with bad month or day numbers should be rejected # dates with bad month or day numbers should be rejected
./hledger -f- print bin/hledger -f- print
<<< <<<
2010/31/12 x 2010/31/12 x
a 1 a 1
b b
>>>2 /bad month number: 31/ >>>2 /bad month number: 31/
>>>= 1 >>>= 1
./hledger -f- print bin/hledger -f- print
<<< <<<
2010/12/32 x 2010/12/32 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f- bin/hledger -f-
<<< <<<
; -*- ledger -*- ; -*- ledger -*-

View File

@ -1,4 +1,4 @@
./hledger -f - print bin/hledger -f - print
<<< <<<
P 2009/1/1 p 0.5h P 2009/1/1 p 0.5h

View File

@ -1,6 +1,6 @@
# draft pricing tests # draft pricing tests
# 1. print a transaction with explicitly-priced amount # 1. print a transaction with explicitly-priced amount
./hledger -f- print bin/hledger -f- print
<<< <<<
2009/1/2 x 2009/1/2 x
expenses:foreign currency €100 @ $1.35 expenses:foreign currency €100 @ $1.35
@ -11,7 +11,7 @@
assets $-135.00 assets $-135.00
# 2. again, this time converting to cost basis # 2. again, this time converting to cost basis
./hledger -f- print -B bin/hledger -f- print -B
<<< <<<
2009/1/2 x 2009/1/2 x
expenses:foreign currency €100 @ $1.35 expenses:foreign currency €100 @ $1.35
@ -22,7 +22,7 @@
assets $-135.00 assets $-135.00
# 3. same as above, but using a historical price directive # 3. same as above, but using a historical price directive
./hledger -f- print bin/hledger -f- print
<<< <<<
P 2009/1/1 € $1.35 P 2009/1/1 € $1.35
@ -36,7 +36,7 @@ P 2009/1/1 € $1.35
assets €-100 @ $1.35 assets €-100 @ $1.35
# 4. and with conversion # 4. and with conversion
./hledger -f- print -B bin/hledger -f- print -B
<<< <<<
P 2009/1/1 € $1.35 P 2009/1/1 € $1.35

View File

@ -1,4 +1,4 @@
./hledger -f - print desc:x bin/hledger -f - print desc:x
<<< <<<
2009/1/1 x 2009/1/1 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f - print bin/hledger -f - print
<<< <<<
2009/1/1 x 2009/1/1 x
aaaaabbbbbcccccdddddeeeeefffffggggghhhhh 1 aaaaabbbbbcccccdddddeeeeefffffggggghhhhh 1

View File

@ -1,5 +1,5 @@
# a posting comment should appear in print # a posting comment should appear in print
./hledger -f - print bin/hledger -f - print
<<< <<<
2010/01/01 x 2010/01/01 x
a 1 ; comment a 1 ; comment

View File

@ -1,6 +1,6 @@
# let's have print preserve comments as far as possible # let's have print preserve comments as far as possible
# we preserve line-end comments but not full line comments # we preserve line-end comments but not full line comments
./hledger -f - print bin/hledger -f - print
<<< <<<
2009/1/1 x ; description comment 2009/1/1 x ; description comment
a 1 ; amount comment a 1 ; amount comment

View File

@ -1,4 +1,4 @@
./hledger -f - register --depth 1 --empty --monthly bin/hledger -f - register --depth 1 --empty --monthly
<<< <<<
2010/1/1 x 2010/1/1 x
a:aa 1 a:aa 1

View File

@ -1,4 +1,4 @@
./hledger -f - register --depth 1 bin/hledger -f - register --depth 1
<<< <<<
2010/1/1 x 2010/1/1 x
a:aa 1 a:aa 1

View File

@ -1,5 +1,5 @@
# a posting comment should not appear in register # a posting comment should not appear in register
./hledger -f - register bin/hledger -f - register
<<< <<<
2010/1/1 x 2010/1/1 x
a 1 ; comment a 1 ; comment

View File

@ -1,6 +1,6 @@
# #
# monthly reporting interval, no end dates, shows just the intervals with data: # monthly reporting interval, no end dates, shows just the intervals with data:
./hledger -f- register --period 'monthly' bin/hledger -f- register --period 'monthly'
<<< <<<
2010/2/1 x 2010/2/1 x
a 1 a 1
@ -10,7 +10,7 @@
b -1 0 b -1 0
# #
# with --empty, the same: # with --empty, the same:
./hledger -f- register --period 'monthly' --empty bin/hledger -f- register --period 'monthly' --empty
<<< <<<
2010/2/1 x 2010/2/1 x
a 1 a 1
@ -20,7 +20,7 @@
b -1 0 b -1 0
# #
# with --empty and start/end dates, show all intervals covering the specified period # with --empty and start/end dates, show all intervals covering the specified period
./hledger -f- register --period 'monthly from 2010/1/10 to 2010/3/15' --empty bin/hledger -f- register --period 'monthly from 2010/1/10 to 2010/3/15' --empty
<<< <<<
2010/2/1 x 2010/2/1 x
a 1 a 1
@ -32,7 +32,7 @@
2010/03/01 - 2010/03/31 0 0 2010/03/01 - 2010/03/31 0 0
# #
# with just one start/end date, get the other from the data # with just one start/end date, get the other from the data
./hledger -f- register --period 'monthly from 2010/1/10' --empty bin/hledger -f- register --period 'monthly from 2010/1/10' --empty
<<< <<<
2010/2/1 x 2010/2/1 x
a 1 a 1

View File

@ -1,4 +1,4 @@
./hledger -f sample.ledger balance --depth 1 bin/hledger -f data/sample.ledger balance --depth 1
>>> >>>
$-1 assets $-1 assets
$2 expenses $2 expenses

View File

@ -1,4 +1,4 @@
./hledger -f sample.ledger balance o bin/hledger -f data/sample.ledger balance o
>>> >>>
$1 expenses:food $1 expenses:food
$-2 income $-2 income

View File

@ -1,4 +1,4 @@
./hledger -f sample.ledger balance bin/hledger -f data/sample.ledger balance
>>> >>>
$-1 assets $-1 assets
$1 bank:saving $1 bank:saving

View File

@ -1,5 +1,5 @@
# should infer prices to balance this - not implemented # should infer prices to balance this - not implemented
./hledger -f - print bin/hledger -f - print
<<< <<<
2009/1/1 opening balance 2009/1/1 opening balance
Assets:Brokerage 1 AAPL Assets:Brokerage 1 AAPL

View File

@ -1,4 +1,4 @@
./hledger -f - print bin/hledger -f - print
<<< <<<
i 2009/1/1 08:00:00 x i 2009/1/1 08:00:00 x
o 2009/1/1 09:00:00 o 2009/1/1 09:00:00

View File

@ -1,4 +1,4 @@
./hledger -f - register bin/hledger -f - register
<<< <<<
2009/1/1 a 2009/1/1 a
b 1.1 b 1.1

View File

@ -1,4 +1,4 @@
./hledger -f - register τράπ bin/hledger -f - register τράπ
<<< <<<
2009-01-01 проверка 2009-01-01 проверка
τράπεζα 10 руб τράπεζα 10 руб

View File

@ -1,4 +1,4 @@
./hledger -f - balance bin/hledger -f - balance
<<< <<<
2009-01-01 проверка 2009-01-01 проверка
τράπεζα 10 руб τράπεζα 10 руб

View File

@ -1,4 +1,4 @@
./hledger -f - register desc:аура bin/hledger -f - register desc:аура
<<< <<<
2009-01-01 аура (cyrillic letters) 2009-01-01 аура (cyrillic letters)
bank 10 bank 10

View File

@ -1,4 +1,4 @@
./hledger -f - balance bin/hledger -f - balance
<<< <<<
2009-01-01 broken entry 2009-01-01 broken entry
дебит 1 дебит 1

View File

@ -1,4 +1,4 @@
./hledger -f - print bin/hledger -f - print
<<< <<<
2009-01-01 проверка 2009-01-01 проверка
счёт:первый 1 счёт:первый 1

View File

@ -1,4 +1,4 @@
./hledger -f - register bin/hledger -f - register
<<< <<<
2009-01-01 проверка 2009-01-01 проверка
τράπεζα 10 руб τράπεζα 10 руб

View File

@ -1,5 +1,5 @@
# 1. virtual posting shouldn't affect balance # 1. virtual posting shouldn't affect balance
./hledger -f- bin/hledger -f-
<<< <<<
2009/1/1 x 2009/1/1 x
(virtual) 100 (virtual) 100
@ -7,7 +7,7 @@
b b
# #
# 2. balanced virtual postings should be required to balance (themselves) # 2. balanced virtual postings should be required to balance (themselves)
./hledger -f- bin/hledger -f-
<<< <<<
2010/1/1 x 2010/1/1 x
[balanced virtual] 10 [balanced virtual] 10
@ -16,7 +16,7 @@
>>>= !0 >>>= !0
# #
# 3. balanced virtual postings should be required to balance (themselves) # 3. balanced virtual postings should be required to balance (themselves)
./hledger -f- bin/hledger -f-
<<< <<<
2010/1/1 x 2010/1/1 x
[balanced virtual] 10 [balanced virtual] 10
@ -25,14 +25,14 @@
b b
# #
# 4. a virtual posting with implicit amount should be handled correctly # 4. a virtual posting with implicit amount should be handled correctly
./hledger -f- bin/hledger -f-
<<< <<<
2010/1/1 x 2010/1/1 x
[a] 10 [a] 10
[b] [b]
# #
# 5. real and balanced virtual postings are balanced separately, and multiple blank virtuals are ok # 5. real and balanced virtual postings are balanced separately, and multiple blank virtuals are ok
./hledger -f- bin/hledger -f-
<<< <<<
2010/1/1 x 2010/1/1 x
a 1 a 1

View File

@ -1,6 +1,6 @@
# a zero amount is always displayed as just "0", regardless of any commodity/decimal places/price (like ledger) # a zero amount is always displayed as just "0", regardless of any commodity/decimal places/price (like ledger)
# #
./hledger -f- print --empty bin/hledger -f- print --empty
<<< <<<
2010/3/1 x 2010/3/1 x
a $0.00 @ 3EUR a $0.00 @ 3EUR