mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
;tests: rename hledger-csv -> csvtest.sh
This commit is contained in:
parent
c1488db4f1
commit
ababccd8e0
@ -7,7 +7,7 @@ date-format %d/%Y/%m
|
|||||||
currency $
|
currency $
|
||||||
account1 assets:myacct
|
account1 assets:myacct
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50
|
assets:myacct $50
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -27,7 +27,7 @@ amount-in %3
|
|||||||
amount-out %4
|
amount-out %4
|
||||||
currency $
|
currency $
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co🎅
|
2009-09-10 Flubber Co🎅
|
||||||
Assets:MyAccount $50
|
Assets:MyAccount $50
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -50,7 +50,7 @@ account1 assets:myacct
|
|||||||
if Flubber
|
if Flubber
|
||||||
account2 acct
|
account2 acct
|
||||||
comment cmt
|
comment cmt
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co ; cmt
|
2009-09-10 Flubber Co ; cmt
|
||||||
assets:myacct $50
|
assets:myacct $50
|
||||||
acct $-50
|
acct $-50
|
||||||
@ -67,7 +67,7 @@ date-format %d/%Y/%m
|
|||||||
currency $
|
currency $
|
||||||
account1 assets:myacct
|
account1 assets:myacct
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50 = $123
|
assets:myacct $50 = $123
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -85,7 +85,7 @@ date-format %d/%Y/%m
|
|||||||
currency $
|
currency $
|
||||||
account1 assets:myacct
|
account1 assets:myacct
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50 = $123
|
assets:myacct $50 = $123
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -107,7 +107,7 @@ date-format %d/%Y/%m
|
|||||||
currency $
|
currency $
|
||||||
account1 assets:myacct
|
account1 assets:myacct
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50 = $123
|
assets:myacct $50 = $123
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -134,7 +134,7 @@ fields date, payee, payment
|
|||||||
amount -%payment
|
amount -%payment
|
||||||
account1 liabilities:bank
|
account1 liabilities:bank
|
||||||
account2 expense:other
|
account2 expense:other
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-10-09
|
2009-10-09
|
||||||
liabilities:bank $-50
|
liabilities:bank $-50
|
||||||
expense:other $50
|
expense:other $50
|
||||||
@ -159,7 +159,7 @@ amount-in %3
|
|||||||
amount-out %4
|
amount-out %4
|
||||||
currency $
|
currency $
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co🎅
|
2009-09-10 Flubber Co🎅
|
||||||
Assets:MyAccount $50
|
Assets:MyAccount $50
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -180,7 +180,7 @@ date-format %d/%Y/%m
|
|||||||
currency $
|
currency $
|
||||||
account1 assets:myacct
|
account1 assets:myacct
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50
|
assets:myacct $50
|
||||||
income:unknown $-50 = $123
|
income:unknown $-50 = $123
|
||||||
@ -197,7 +197,7 @@ date-format %d/%Y/%m
|
|||||||
currency $
|
currency $
|
||||||
account1 assets:myacct
|
account1 assets:myacct
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50 = $321
|
assets:myacct $50 = $321
|
||||||
income:unknown $-50 = $123
|
income:unknown $-50 = $123
|
||||||
@ -217,7 +217,7 @@ account1 assets:myacct
|
|||||||
account3 expenses:tax
|
account3 expenses:tax
|
||||||
account4 the:remainder
|
account4 the:remainder
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50.000 = $321.000
|
assets:myacct $50.000 = $321.000
|
||||||
expenses:unknown = $123.000
|
expenses:unknown = $123.000
|
||||||
@ -238,7 +238,7 @@ account1 assets:myacct
|
|||||||
account3 expenses:tax
|
account3 expenses:tax
|
||||||
account4 the:remainder
|
account4 the:remainder
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50 = $321
|
assets:myacct $50 = $321
|
||||||
expenses:unknown = $123
|
expenses:unknown = $123
|
||||||
@ -260,7 +260,7 @@ amount-in %3
|
|||||||
amount-out %4
|
amount-out %4
|
||||||
currency $
|
currency $
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co🎅
|
2009-09-10 Flubber Co🎅
|
||||||
Assets:MyAccount $50
|
Assets:MyAccount $50
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -290,7 +290,7 @@ fields date, description, amount
|
|||||||
date-format %d/%Y/%m
|
date-format %d/%Y/%m
|
||||||
currency $
|
currency $
|
||||||
account1 assets:myacct
|
account1 assets:myacct
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co Co Co
|
2009-09-10 Flubber Co Co Co
|
||||||
assets:myacct $50
|
assets:myacct $50
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -309,7 +309,7 @@ currency $
|
|||||||
if Flubber
|
if Flubber
|
||||||
account1 assets:%account1
|
account1 assets:%account1
|
||||||
amount-in (%amount-in)
|
amount-in (%amount-in)
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $-50
|
assets:myacct $-50
|
||||||
expenses:unknown $50
|
expenses:unknown $50
|
||||||
@ -333,7 +333,7 @@ currency $
|
|||||||
date %1
|
date %1
|
||||||
date-format %m/%d/%Y
|
date-format %m/%d/%Y
|
||||||
description %description for %itemtitle
|
description %description for %itemtitle
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2018-12-22 (123456789) Someone for Joyful Systems
|
2018-12-22 (123456789) Someone for Joyful Systems
|
||||||
sm:assets:online:paypal $9.41 = $57.60
|
sm:assets:online:paypal $9.41 = $57.60
|
||||||
sm:expenses:unknown
|
sm:expenses:unknown
|
||||||
@ -350,7 +350,7 @@ account1 unknown
|
|||||||
amount %2
|
amount %2
|
||||||
date %1
|
date %1
|
||||||
date-format %Y/%m/%d
|
date-format %Y/%m/%d
|
||||||
$ ./hledger-csv | hledger balance -f - --no-total
|
$ ./csvtest.sh | hledger balance -f - --no-total
|
||||||
$-1,001.00 income:unknown
|
$-1,001.00 income:unknown
|
||||||
$1,001.00 unknown
|
$1,001.00 unknown
|
||||||
>=0
|
>=0
|
||||||
@ -382,7 +382,7 @@ END OF FILE
|
|||||||
if MIDDLE
|
if MIDDLE
|
||||||
skip 3
|
skip 3
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50
|
assets:myacct $50
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -406,7 +406,7 @@ date-format %Y-%m-%d
|
|||||||
description Assets Update
|
description Assets Update
|
||||||
account1 assets
|
account1 assets
|
||||||
account2 income
|
account2 income
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2018-10-15 Assets Update
|
2018-10-15 Assets Update
|
||||||
assets = EUR 100
|
assets = EUR 100
|
||||||
income
|
income
|
||||||
@ -430,7 +430,7 @@ fields date,amount
|
|||||||
amount
|
amount
|
||||||
comment x
|
comment x
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2018-10-15 ; x
|
2018-10-15 ; x
|
||||||
|
|
||||||
>=0
|
>=0
|
||||||
@ -464,7 +464,7 @@ if Conditional Empty Fee
|
|||||||
if ,Empty fee
|
if ,Empty fee
|
||||||
skip
|
skip
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2018-12-22 (123456789) Someone for Joyful Systems
|
2018-12-22 (123456789) Someone for Joyful Systems
|
||||||
sm:assets:online:paypal $9.41 = $57.60
|
sm:assets:online:paypal $9.41 = $57.60
|
||||||
sm:expenses:unknown
|
sm:expenses:unknown
|
||||||
@ -487,7 +487,7 @@ balance-type ==*
|
|||||||
currency $
|
currency $
|
||||||
account1 assets:myacct
|
account1 assets:myacct
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
assets:myacct $50 ==* $123
|
assets:myacct $50 ==* $123
|
||||||
income:unknown $-50
|
income:unknown $-50
|
||||||
@ -504,7 +504,7 @@ date-format %d/%Y/%m
|
|||||||
currency $
|
currency $
|
||||||
account1 (assets:myacct)
|
account1 (assets:myacct)
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
(assets:myacct) $50 = $123
|
(assets:myacct) $50 = $123
|
||||||
|
|
||||||
@ -521,7 +521,7 @@ currency $
|
|||||||
account1 [assets:myacct]
|
account1 [assets:myacct]
|
||||||
account2 [assets:another-acct]
|
account2 [assets:another-acct]
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-09-10 Flubber Co
|
2009-09-10 Flubber Co
|
||||||
[assets:myacct] $50
|
[assets:myacct] $50
|
||||||
[assets:another-acct] $-50
|
[assets:another-acct] $-50
|
||||||
@ -538,7 +538,7 @@ currency $
|
|||||||
account1 (assets:myacct)
|
account1 (assets:myacct)
|
||||||
separator TAB
|
separator TAB
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2009-10-01 Flubber Co
|
2009-10-01 Flubber Co
|
||||||
(assets:myacct) $50 = $123
|
(assets:myacct) $50 = $123
|
||||||
|
|
||||||
@ -553,7 +553,7 @@ fields date, amount
|
|||||||
account1 a
|
account1 a
|
||||||
account2 expenses:unknown
|
account2 expenses:unknown
|
||||||
|
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2020-01-01
|
2020-01-01
|
||||||
a 5
|
a 5
|
||||||
expenses:unknown -5
|
expenses:unknown -5
|
||||||
@ -569,7 +569,7 @@ fields date, desc
|
|||||||
if %desc 1
|
if %desc 1
|
||||||
description one
|
description one
|
||||||
|
|
||||||
$ ./hledger-csv desc:one
|
$ ./csvtest.sh desc:one
|
||||||
2020-01-01 one
|
2020-01-01 one
|
||||||
|
|
||||||
>=0
|
>=0
|
||||||
@ -580,7 +580,7 @@ $ ./hledger-csv desc:one
|
|||||||
2020-01-01, 1,
|
2020-01-01, 1,
|
||||||
RULES
|
RULES
|
||||||
fields date, amount,
|
fields date, amount,
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2020-01-01
|
2020-01-01
|
||||||
expenses:unknown 1
|
expenses:unknown 1
|
||||||
income:unknown -1
|
income:unknown -1
|
||||||
@ -593,7 +593,7 @@ $ ./hledger-csv
|
|||||||
2020-01-01, 1, a
|
2020-01-01, 1, a
|
||||||
RULES
|
RULES
|
||||||
fields date, amount, account1
|
fields date, amount, account1
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2020-01-01
|
2020-01-01
|
||||||
a 1
|
a 1
|
||||||
income:unknown -1
|
income:unknown -1
|
||||||
@ -606,7 +606,7 @@ $ ./hledger-csv
|
|||||||
RULES
|
RULES
|
||||||
fields date, amount, account1
|
fields date, amount, account1
|
||||||
account2 expenses:unknown
|
account2 expenses:unknown
|
||||||
$ ./hledger-csv
|
$ ./csvtest.sh
|
||||||
2020-01-01
|
2020-01-01
|
||||||
a 1
|
a 1
|
||||||
expenses:unknown -1
|
expenses:unknown -1
|
||||||
@ -615,7 +615,7 @@ $ ./hledger-csv
|
|||||||
|
|
||||||
## .
|
## .
|
||||||
#<
|
#<
|
||||||
#$ ./hledger-csv
|
#$ ./csvtest.sh
|
||||||
#>=0
|
#>=0
|
||||||
|
|
||||||
## . A single unbalanced posting with number other than 1 also should not generate a balancing posting.
|
## . A single unbalanced posting with number other than 1 also should not generate a balancing posting.
|
||||||
@ -626,7 +626,7 @@ $ ./hledger-csv
|
|||||||
#fields date,amount
|
#fields date,amount
|
||||||
#account2 (a)
|
#account2 (a)
|
||||||
#
|
#
|
||||||
#$ ./hledger-csv
|
#$ ./csvtest.sh
|
||||||
#2019-01-01
|
#2019-01-01
|
||||||
# (a) 1
|
# (a) 1
|
||||||
#
|
#
|
||||||
@ -640,7 +640,7 @@ $ ./hledger-csv
|
|||||||
#fields date,amount
|
#fields date,amount
|
||||||
#account1 a
|
#account1 a
|
||||||
#
|
#
|
||||||
#$ ./hledger-csv
|
#$ ./csvtest.sh
|
||||||
#2019/01/01
|
#2019/01/01
|
||||||
# a 0
|
# a 0
|
||||||
#
|
#
|
||||||
@ -654,7 +654,7 @@ $ ./hledger-csv
|
|||||||
#fields date,amount
|
#fields date,amount
|
||||||
#account1 [a]
|
#account1 [a]
|
||||||
#
|
#
|
||||||
#$ ./hledger-csv
|
#$ ./csvtest.sh
|
||||||
#2019/01/01
|
#2019/01/01
|
||||||
# [a] 1
|
# [a] 1
|
||||||
# [income:unknown] -1
|
# [income:unknown] -1
|
||||||
@ -677,7 +677,7 @@ $ ./hledger-csv
|
|||||||
# amount-in %3
|
# amount-in %3
|
||||||
# amount-out %4
|
# amount-out %4
|
||||||
# currency $
|
# currency $
|
||||||
# $ ./hledger-csv
|
# $ ./csvtest.sh
|
||||||
# 2009/09/10 Flubber Co🎅
|
# 2009/09/10 Flubber Co🎅
|
||||||
# Assets:MyAccount $50
|
# Assets:MyAccount $50
|
||||||
# expenses:unknown $-50
|
# expenses:unknown $-50
|
||||||
@ -700,7 +700,7 @@ $ ./hledger-csv
|
|||||||
# amount-in %3
|
# amount-in %3
|
||||||
# amount-out %4
|
# amount-out %4
|
||||||
# currency $
|
# currency $
|
||||||
# $ ./hledger-csv
|
# $ ./csvtest.sh
|
||||||
# 2009/09/10 Flubber Co🎅
|
# 2009/09/10 Flubber Co🎅
|
||||||
# Assets:MyAccount $50
|
# Assets:MyAccount $50
|
||||||
# expenses:unknown $-50
|
# expenses:unknown $-50
|
||||||
|
Loading…
Reference in New Issue
Block a user