Skip to content

Instantly share code, notes, and snippets.

@simonmichael
Last active December 21, 2022 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonmichael/052703b1641669bfe067c68b81f707cc to your computer and use it in GitHub Desktop.
Save simonmichael/052703b1641669bfe067c68b81f707cc to your computer and use it in GitHub Desktop.
Results from a run of hledger's ledger-compat test suite

Tested 2022-12-18 with hledger 1.28.99-g016b7759f-20221209, mac-aarch64

@alias

../regress/1384C1D8.test: [Failed]

Command (at line 20): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | @alias OLD1 = NEW1

^

unexpected ‘@’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

!end

../regress/89233B6D.test: [Failed]

Command (at line 9): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:3:5:

3 | !end

^

unexpected newline expecting end aliases directive, end apply account directive, or end tag or pop directive

Expected exit code: 0 Got exit code: 1

amount expressions

../baseline/cmd-print.test: [Failed]

Command (at line 5): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:36:

2 | Expenses:Food ($10,00 + $2,50)

^

unexpected ‘+’ expecting ‘;’, ‘=’, end of input, ledger-style lot date, ledger-style lot price, newline, or transaction price

Expected exit code: 0 Got exit code: 1

../baseline/feat-balance-assignments.test: [Failed]

Command (at line 29): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:27:54:

27 | Assets:Cash = ($4,000.00 + $100.00)

^

unexpected ‘+’ expecting ‘;’, end of input, newline, or transaction price

Expected exit code: 0 Got exit code: 1

../baseline/opt-lot-dates.test: [Failed]

Command (at line 552): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:540:40:

540 | Expenses:Items (9G * 6) ; Traveler’s backpacks

^

unexpected ‘G’ expecting ‘;’, ‘=’, digit, end of input, exponent, ledger-style lot date, ledger-style lot price, newline, space, or transaction price

Expected exit code: 0 Got exit code: 1

../baseline/opt-lot-prices.test: [Failed]

Command (at line 552): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:540:40:

540 | Expenses:Items (9G * 6) ; Traveler’s backpacks

^

unexpected ‘G’ expecting ‘;’, ‘=’, digit, end of input, exponent, ledger-style lot date, ledger-style lot price, newline, space, or transaction price

Expected exit code: 0 Got exit code: 1

../baseline/opt-lots.test: [Failed]

Command (at line 552): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:540:40:

540 | Expenses:Items (9G * 6) ; Traveler’s backpacks

^

unexpected ‘G’ expecting ‘;’, ‘=’, digit, end of input, exponent, ledger-style lot date, ledger-style lot price, newline, space, or transaction price

Expected exit code: 0 Got exit code: 1

../baseline/opt-lots_basis.test: [Failed]

Command (at line 552): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:540:40:

540 | Expenses:Items (9G * 6) ; Traveler’s backpacks

^

unexpected ‘G’ expecting ‘;’, ‘=’, digit, end of input, exponent, ledger-style lot date, ledger-style lot price, newline, space, or transaction price

Expected exit code: 0 Got exit code: 1

../baseline/opt-lots_basis_base.test: [Failed]

Command (at line 553): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:540:40:

540 | Expenses:Items (9G * 6) ; Traveler’s backpacks

^

unexpected ‘G’ expecting ‘;’, ‘=’, digit, end of input, exponent, ledger-style lot date, ledger-style lot price, newline, space, or transaction price

Expected exit code: 0 Got exit code: 1

../baseline/opt-time-colon.test: [Failed]

Command (at line 16): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:51:

2 | (Internal:Meeting:Tactical) 1800s @ ($36/3600)

^

unexpected ‘/’ expecting ‘;’, ‘=’, digit, end of input, exponent, ledger-style lot date, ledger-style lot price, newline, or space

Expected exit code: 0 Got exit code: 1

../regress/04C5E1CA.test: [Failed]

Command (at line 9): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:6:51:

6 | Expenses:School:CS Club:Home Depot:4” Brush (2 * $3.97)

^

unexpected ‘*’ expecting ‘;’, ‘=’, end of input, ledger-style lot date, ledger-style lot price, newline, or transaction price

Expected exit code: 0 Got exit code: 1

../regress/1894_2.test: [Failed]

Command (at line 13): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:43:

2 | [A:Assets:Split] (amount / 2)

^

unexpected ‘/’ expecting ‘+’, ‘-‘, or number

Expected exit code: 0 Got exit code: 1

../regress/2001.test: [Failed]

Command (at line 9): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:36:

2 | Expenses:Something (3 - 1)

^

unexpected ‘-’ expecting ‘;’, ‘=’, end of input, ledger-style lot date, ledger-style lot price, newline, or transaction price

Expected exit code: 0 Got exit code: 1

../regress/FDFBA165.test: [Failed]

Command (at line 10): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:4:37:

4 | (Liabilities:Taxes:VAT) ((1,00 / 1,19) * 0,19)

^

unexpected ‘/’ expecting ‘;’, ‘=’, end of input, ledger-style lot date, ledger-style lot price, newline, or transaction price

Expected exit code: 0 Got exit code: 1

apply FOO / end apply

../baseline/dir-fixed.test: [Failed]

Command (at line 9): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | apply fixed XCD $0.374531835206

^

unexpected ‘a’ expecting end of input

Expected exit code: 0 Got exit code: 1

../baseline/dir-apply.test: [Failed]

Command (at line 29): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:15:1:

15 | end apply

^

unexpected ‘e’ expecting end of input

Expected exit code: 0 Got exit code: 1

../regress/1038_3.test: [Failed]

Command (at line 17): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | apply year 2014

^

unexpected ‘a’ expecting end of input

Expected exit code: 0 Got exit code: 1

../regress/6E7C2DF9.test: [Failed]

Command (at line 19): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:6:1:

6 | apply year 2011

^

unexpected ‘a’ expecting end of input

Expected exit code: 0 Got exit code: 1

assert

../regress/1702.test: [Failed]

Command (at line 12): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:5:

2 | assert value =~ ^Bar$

^

unexpected ‘a’ expecting newline

Expected exit code: 0 Got exit code: 1

../regress/total-1.test: [Failed]

Command (at line 21): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:13:1:

13 | assert account(“Assets:Current Account”).total == $900.00

^

unexpected ‘a’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../regress/total-2.test: [Failed]

Command (at line 21): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:13:1:

13 | assert account(“Assets:Current”).total == $2000.00

^

unexpected ‘a’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

balance assignments and auto postings

../regress/1127.test: [Failed]

Command (at line 13): hledger -f- check Expected stderr:

Got stderr: hledger: Error: Balance assignments and auto postings may not be combined.

2018-06-09 Assert amount added by automated transaction [Foo] = $100

Balance assignments may not be used on accounts affected by auto posting rules (it makes balancing the journal impossible). Please write the posting amount explicitly (or remove the auto posting rule(s)). Expected exit code: 0 Got exit code: 1

balance assignments/assertions and real/virtual

../regress/543_a.test: [Failed]

Command (at line 16): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:13-14: 13 | 2018-01-02 * Assertion

Assets:Checking $100.00 = $100.00

This transaction is unbalanced. The real postings’ sum should be 0 but is: $100.00 Consider adjusting this entry’s amounts, or adding missing postings. Expected exit code: 0 Got exit code: 1

../regress/543_b.test: [Failed]

Command (at line 16): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:13:54:

2018-01-02 * Buy Groceries
[Assets:Budget:Food:Groceries] $-20.00 = $0
[Assets:Checking] $20.00

13 | Assets:Checking $-20.00 = $80

^^^^^
Expenses:Food:Groceries $20.00

This balance assertion failed. In account: Assets:Checking and commodity: $ this balance was asserted: 80 but the calculated balance is: 0…(164 more)Expected exit code: 0 Got exit code: 1

../regress/543_c.test: [Failed]

Command (at line 18): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:15:54:

2018-01-02 * Buy Groceries

15 | Assets:Checking $-20.00 = $80

^^^^^
Expenses:Food:Groceries $20.00

This balance assertion failed. In account: Assets:Checking and commodity: $ this balance was asserted: 80 but the calculated balance is: 0 a difference of: 80

Consider viewing this account’s calculated balances to troubleshoot. Eg:

hledger reg ‘Assets:Checking…(26 more)Expected exit code: 0 Got exit code: 1

../regress/543_d.test: [Failed]

Command (at line 14): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:5-8: 5 | 2018-01-01 * Budget

[Assets:Checking] 0 = 0
[Assets:Budget:Food:Groceries] $20.00
[Assets:Budget:Food:Restaurants] $80.00

This transaction is unbalanced. The balanced virtual postings all have the same sign. Consider negating some of them. Consider adjusting this entry’s amounts, or adding missing postings. Expected exit code: 0 Got exit code: 1

bucket

../regress/0161EB1E.test: [Failed]

Command (at line 10): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | bucket Assets:Checking

^

unexpected ‘b’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

C

../regress/2057.test: [Failed]

Command (at line 7): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:5:

1 | C 1 “” = 1 $

^

unexpected ‘”’ expecting ‘=’, ledger-style lot date, ledger-style lot price, or transaction price

Expected exit code: 0 Got exit code: 1

commodity subdirectives

../baseline/dir-commodity-alias.test: [Failed]

Command (at line 12): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:5:

2 | alias USD

^^^^^^

unexpected “alias ” expecting “format”

Expected exit code: 0 Got exit code: 1

../baseline/dir-commodity-value.test: [Failed]

Command (at line 20): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:5:

2 | value 10 EUR

^^^^^^

unexpected “value ” expecting “format”

Expected exit code: 0 Got exit code: 1

../regress/equity-unround.test: [Failed]

Command (at line 17): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:5:

2 | note Euro

^^^^^^

unexpected “note E” expecting “format”

Expected exit code: 0 Got exit code: 1

custom date formats

../baseline/opt-input-date-format.test: [Failed]

Command (at line 5): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:3:

1 | 02%02%2007 RD VMMXX

^

unexpected ‘%’ expecting date separator or digit

Expected exit code: 0 Got exit code: 1

../regress/751B2357.test: [Failed]

Command (at line 9): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:6:

1 | 01.10.2011 4b4e2a89

^

unexpected ‘.’ expecting digit, secondary date, or whitespace or newline

Expected exit code: 0 Got exit code: 1

define

../baseline/feat-value-expr.test: [Failed]

Command (at line 90): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:17:1:

17 | define myfunc_seven(s, d, t) = 7 EUR

^

unexpected ‘d’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

file format mixing/detection

../baseline/opt-base.test: [Failed]

Command (at line 15): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | i 2007/03/01 23:00:00 A

^

unexpected ‘i’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../baseline/opt-datetime-format.test: [Failed]

Command (at line 12): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | i 2013/04/05 09:30:00 Internal:Meeting:Tactical Intelligent comment

^

unexpected ‘i’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../baseline/opt-day-break.test: [Failed]

Command (at line 4): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | i 05/10/2011 08:58:37 682

^

unexpected ‘i’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../baseline/opt-time-report.test: [Failed]

Command (at line 12): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | i 2013/04/05 09:30:00 Internal:Meeting:Tactical [Intelligent comment]

^

unexpected ‘i’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../regress/3AB70168.test: [Failed]

Command (at line 6): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | i 2007/03/01 23:00:00 A

^

unexpected ‘i’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../regress/ACE05ECE.test: [Failed]

Command (at line 4): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | i 2011/07/20 17:00:00 Hello Work project

^

unexpected ‘i’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

lot notation

../baseline/feat-annotations.test: [Failed]

Command (at line 19): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:5-8: 5 | 2012-03-09 KFC

Assets:Cash $75
Expenses:Food -10 CHIK @ $75
Equity:Capital Gains $-25

This multi-commodity transaction is unbalanced. The real postings’ sum should be 0 but is: $-700 Consider adjusting this entry’s amounts, adding missing postings, or recording conversion price(s) with @, @@ or equity postings. Expected exit code: 0 Got exit code: 1

../baseline/opt-exchange.test: [Failed]

Command (at line 49): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:38:44:

38 | Assets:Brokerage 155 A (A123) @@ 500 F

^

unexpected ‘A’ expecting ‘@’

Expected exit code: 0 Got exit code: 1

../baseline/opt-lot-notes.test: [Failed]

Command (at line 17): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:6:42:

6 | Assets:Voucher 10.00 GBP (aaaa)

^

unexpected ‘a’ expecting ‘@’

Expected exit code: 0 Got exit code: 1

../baseline/opt-lot-tags.test: [Failed]

Command (at line 8): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:4:43:

4 | Assets:Tajer 1339829c (TAG)

^

unexpected ‘T’ expecting ‘@’

Expected exit code: 0 Got exit code: 1

../regress/2109.test: [Failed]

Command (at line 16): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:32:

2 | Assets:Foo 100 FOO (Note) {$43.44}

^

unexpected ‘N’ expecting ‘@’

Expected exit code: 0 Got exit code: 1

../regress/712-b.test: [Failed]

Command (at line 15): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:9-12: 9 | 2011-12-07 * Sell AAA with a gain

Assets:Cash 12.00 GBP
Assets:Investments -1 AAA @@ 12.00 GBP
Income:Capital gains -2.00 GBP

This multi-commodity transaction is unbalanced. The real postings’ sum should be 0 but is: -2.00 GBP Consider adjusting this entry’s amounts, adding missing postings, or recording conversion price(s) with @, @@ or equity postings. Expected exit code: 0 Got exit code: 1

../regress/713-a.test: [Failed]

Command (at line 19): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:9-12: 9 | 2011-03-07 * Sell one AAA with a gain

Assets:Cash 12.00 GBP
Assets:Investments -1 AAA @@ 12.00 GBP
Income:Capital gains -2.00 GBP

This multi-commodity transaction is unbalanced. The real postings’ sum should be 0 but is: -2.00 GBP Consider adjusting this entry’s amounts, adding missing postings, or recording conversion price(s) with @, @@ or equity postings. Expected exit code: 0 Got exit code: 1

../regress/95350193.test: [Failed]

Command (at line 5): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:55:

2 | Assets:Voucher:Amazon 137.87 GBP (48H5)

^

unexpected ‘4’ expecting ‘@’

Expected exit code: 0 Got exit code: 1

../regress/CAE63F5C-b.test: [Failed]

Command (at line 7): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1-5: 1 | 2012-08-22 Payment

Accrued €208.00 @ $1.2799
Expenses €4.16 @ $1.2799
Assets $-271.54
Income:Currency Conversion $-6.45

This multi-commodity transaction is unbalanced. The real postings’ sum should be 0 but is: $-6.4464 Consider adjusting this entry’s amounts, adding missing postings, or recording conversion price(s) with @, @@ or equity postings….(1 more)Expected exit code: 0 Got exit code: 1

../regress/CAE63F5C-c.test: [Failed]

Command (at line 7): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1-5: 1 | 2012-08-22 Payment

Accrued €208.00 @ $1.2798689
Expenses €4.16 @ $1.2798689
Assets $-271.54
Income:Currency Conversion $-6.45

This multi-commodity transaction is unbalanced. The real postings’ sum should be 0 but is: $-6.4530142 Consider adjusting this entry’s amounts, adding missing postings, or recording conversion price(s) with @, @@ or e…(16 more)Expected exit code: 0 Got exit code: 1

options in file

../regress/1072.test: [Failed]

Command (at line 13): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | –input-date-format %d/%m/%y

^

unexpected ‘-’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../regress/1074.test: [Failed]

Command (at line 65): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | –input-date-format %Y-%m-%d

^

unexpected ‘-’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../regress/383.test: [Failed]

Command (at line 10): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | –input-date-format %Y:%m:%d

^

unexpected ‘-’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../regress/65FECA4D.test: [Failed]

Command (at line 9): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | –now=2012-02-28

^

unexpected ‘-’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../regress/755.test: [Failed]

Command (at line 14): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:3:1:

3 | –date-format %Y/%m/%d

^

unexpected ‘-’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../regress/DE17CCF1.test: [Failed]

Command (at line 22): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | –date-format %Y-%m-%d

^

unexpected ‘-’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

payee subdirectives

../baseline/dir-payee.test: [Failed]

Command (at line 20): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:5:

2 | alias Kentucky Fried Chicken

^

unexpected ‘a’ expecting newline

Expected exit code: 0 Got exit code: 1

../baseline/feat-convert-with-directives.test: [Failed]

Command (at line 9): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:6:5:

6 | alias REWE SAGT DANKE

^

unexpected ‘a’ expecting newline

Expected exit code: 0 Got exit code: 1

period expressions

../baseline/opt-budget_only.test: [Failed]

Command (at line 15): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:10:

1 | ~ Monthly since 2010/01/01

^^^^^^^^^^^^^^^^^

remainder of period expression cannot be parsed perhaps you need to terminate the period expression with a double space? a double space is required between period expression and description/comment

Expected exit code: 0 Got exit code: 1

../baseline/opt-forecast_only.test: [Failed]

Command (at line 11): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:10:

1 | ~ Monthly since 2010/01/01

^^^^^^^^^^^^^^^^^

remainder of period expression cannot be parsed perhaps you need to terminate the period expression with a double space? a double space is required between period expression and description/comment

Expected exit code: 0 Got exit code: 1

../regress/370-budget_period_weeks.test: [Failed]

Command (at line 10): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:3:

2 | ~ every 2 weeks from 2010/02/23

^

Unable to generate transactions according to “every 2 weeks from 2010/02/23” because 2010-02-23 is not a first day of the Week

Expected exit code: 0 Got exit code: 1

../regress/370-forecast_period_weeks.test: [Failed]

Command (at line 9): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:2:3:

2 | ~ every 2 weeks from 2010/02/23

^

Unable to generate transactions according to “every 2 weeks from 2010/02/23” because 2010-02-23 is not a first day of the Week

Expected exit code: 0 Got exit code: 1

../regress/620F0674.test: [Failed]

Command (at line 11): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:10:

1 | ~ Monthly since 2010/01/01

^^^^^^^^^^^^^^^^^

remainder of period expression cannot be parsed perhaps you need to terminate the period expression with a double space? a double space is required between period expression and description/comment

Expected exit code: 0 Got exit code: 1

../regress/D2829FC4.test: [Failed]

Command (at line 11): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:10:

1 | ~ Monthly since 2010/01/01

^^^^^^^^^^^^^^^^^

remainder of period expression cannot be parsed perhaps you need to terminate the period expression with a double space? a double space is required between period expression and description/comment

Expected exit code: 0 Got exit code: 1

precision

../collected/balancing-precision.test: [Failed]

Command (at line 1): hledger check -f balancing-precision.j Expected stderr:

Got stderr: hledger: Error: /Users/simon/src/hledger/hledger/test/ledger-compat/collected/balancing-precision.j:5-7: 5 | 2022-01-01 txn1

expenses AAA 989.02 @ $1.123456 ; $1111.12045312
checking $-1111.1200

This multi-commodity transaction is unbalanced. The real postings’ sum should be 0 but is: $0.000453 Consider adjusting this entry’s amounts, adding missing postings, or recording conversion price(s) with @, @@ or equity postings. Expected exit code: 0 Got exit code: 1

python

../baseline/feat-option_py.test: [Failed]

Command (at line 11): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | python

^

unexpected ‘p’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../baseline/feat-value_py2.test: [Failed]

Command (at line 15): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | python

^

unexpected ‘p’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

../baseline/feat-value_py3.test: [Failed]

Command (at line 15): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | python

^

unexpected ‘p’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

year

../regress/1038_2.test: [Failed]

Command (at line 15): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:1:1:

1 | year 2014

^

unexpected ‘y’ expecting end of input or transaction or directive

Expected exit code: 0 Got exit code: 1

expected failures

options-related failures

../baseline/opt-price.test: [Failed]

Command (at line 14): hledger -f- check Expected stderr:

Got stderr: hledger: Error: -:5-8: 5 | 2008-06-30 * Sell some Apple shares

Cash $1250
Equities -500 AAPL @ $2.50
Income:Gains $-250

This multi-commodity transaction is unbalanced. The real postings’ sum should be 0 but is: $-250.00 Consider adjusting this entry’s amounts, adding missing postings, or recording conversion price(s) with @, @@ or equity postings. Expected exit code: 0 Got exit code: 1

uncategorised failures

Summary

Passed 279 279 Failed 71 71 Total 350 350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment