;tests: flatten functional test files a bit

[ci skip]
This commit is contained in:
Simon Michael 2019-07-08 08:28:03 +01:00
parent 0557440f14
commit ec56c45c6b
24 changed files with 24 additions and 146 deletions

View File

@ -1,40 +0,0 @@
; A sample journal file.
;
; Sets up this account tree:
; assets
; bank
; checking
; saving
; cash
; expenses
; food
; supplies
; income
; gifts
; salary
; liabilities
; debts
2008/01/01 income
assets:bank:checking $1
income:salary
2008/06/01 gift
assets:bank:checking $1
income:gifts
2008/06/02 save
assets:bank:saving $1
assets:bank:checking
2008/06/03 * eat & shop
expenses:food $1
expenses:supplies $1
assets:cash
2008/12/31 * pay off
liabilities:debts $1
assets:bank:checking
;final comment

View File

@ -1,40 +0,0 @@
; A sample journal file.
;
; Sets up this account tree:
; assets
; bank
; checking
; saving
; cash
; expenses
; food
; supplies
; income
; gifts
; salary
; liabilities
; debts
2008/01/01 income
assets:bank:checking $1
income:salary
2008/06/01 gift
assets:bank:checking $1
income:gifts
2008/06/02 save
assets:bank:saving $1
assets:bank:checking
2008/06/03 * eat & shop
expenses:food $1
expenses:supplies $1
assets:cash
2008/12/31 * pay off
liabilities:debts $1
assets:bank:checking
;final comment

View File

@ -1,40 +0,0 @@
; A sample journal file.
;
; Sets up this account tree:
; assets
; bank
; checking
; saving
; cash
; expenses
; food
; supplies
; income
; gifts
; salary
; liabilities
; debts
2008/01/01 income
assets:bank:checking $1
income:salary
2008/06/01 gift
assets:bank:checking $1
income:gifts
2008/06/02 save
assets:bank:saving $1
assets:bank:checking
2008/06/03 * eat & shop
expenses:food $1
expenses:supplies $1
assets:cash
2008/12/31 * pay off
liabilities:debts $1
assets:bank:checking
;final comment

View File

@ -1,5 +1,3 @@
# Test prices addon
# by default only market prices are reported
hledger prices -f-
<<<

View File

@ -1,5 +1,3 @@
# Tests for rewrite addon
# Add proportional income tax (from documentation)
hledger rewrite -f- ^income --add-posting '(liabilities:tax) *.33 ; income tax'
<<<

1
tests/sample.journal Symbolic link
View File

@ -0,0 +1 @@
../examples/sample.journal

View File

@ -110,3 +110,26 @@ o 2009/1/3 09:00:00
# $262.5 Receivable:Consulting:XXXX
# --------------------
# $262.5
# # timezone-related tests
# # 1. as in ledger, historical prices may contain a time and timezone.
# # hledger ignores them and uses 00:00 local time instead.
# # XXX needs --value not --cost
# hledgerdev -f - balance --no-total --cost
# <<<
# P 2011/01/01 00:00:00 A $1
# P 2011/01/01 15:00:00-0100 A $2
# 2010/12/31
# (20101231) 1 A
# 2011/1/1
# (20110101) 1 A
# 2011/1/2
# (20110102) 1 A
# >>>
# 1 A 20101231
# $2 20110101
# $2 20110102
# >>>=0

View File

@ -1,22 +0,0 @@
# timezone-related tests
# 1. as in ledger, historical prices may contain a time and timezone.
# hledger ignores them and uses 00:00 local time instead.
# XXX needs --value not --cost
hledgerdev -f - balance --no-total --cost
<<<
P 2011/01/01 00:00:00 A $1
P 2011/01/01 15:00:00-0100 A $2
2010/12/31
(20101231) 1 A
2011/1/1
(20110101) 1 A
2011/1/2
(20110102) 1 A
>>>
1 A 20101231
$2 20110101
$2 20110102
>>>=0