rename developer build to hledgerdev, avoiding confusion with production hledger
This commit is contained in:
		
							parent
							
								
									3e28f6001f
								
							
						
					
					
						commit
						2b8d759db1
					
				
							
								
								
									
										54
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										54
									
								
								Makefile
									
									
									
									
									
								
							| @ -111,7 +111,7 @@ BINARYFILENAME=$(shell touch $(VERSIONHS); runhaskell -ihledger -ihledger-lib $( | |||||||
| 
 | 
 | ||||||
| RELEASEBINARYSUFFIX:=$(shell echo "-$(VERSION)-`uname`-`arch`" | tr '[:upper:]' '[:lower:]') | RELEASEBINARYSUFFIX:=$(shell echo "-$(VERSION)-`uname`-`arch`" | tr '[:upper:]' '[:lower:]') | ||||||
| 
 | 
 | ||||||
| default: tag bin/hledger | default: bin/hledgerdev | ||||||
| 
 | 
 | ||||||
| ######################################################################
 | ######################################################################
 | ||||||
| # BUILDING
 | # BUILDING
 | ||||||
| @ -133,42 +133,40 @@ allcabal%: | |||||||
| # auto-recompile and run (something, eg --help or unit tests) whenever a module changes
 | # auto-recompile and run (something, eg --help or unit tests) whenever a module changes
 | ||||||
| 
 | 
 | ||||||
| auto: sp | auto: sp | ||||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledger $(AUTOBUILDFLAGS) --run --version | 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run --version | ||||||
| 
 | 
 | ||||||
| autotest: sp | autotest: sp | ||||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledger $(AUTOBUILDFLAGS) --run test | 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run test | ||||||
| 
 | 
 | ||||||
| autotest-%: sp | autotest-%: sp | ||||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledger $(AUTOBUILDFLAGS) --run test $* | 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run test $* | ||||||
| 
 | 
 | ||||||
| autoweb: sp | autoweb: sp | ||||||
| 	$(AUTOBUILD) hledger-web/hledger-web.hs -o bin/hledger-web $(AUTOBUILDFLAGS) -DDEVELOPMENT --run -B --port 5001 --base-url http://localhost:5001 -f test.journal | 	$(AUTOBUILD) hledger-web/hledger-web.hs -o bin/hledger-webdev $(AUTOBUILDFLAGS) -DDEVELOPMENT --run -B --port 5001 --base-url http://localhost:5001 -f test.journal | ||||||
| 
 | 
 | ||||||
| # check for sp and explain how to get it if not found.
 | # check for sp and explain how to get it if not found.
 | ||||||
| sp: | sp: | ||||||
| 	@/usr/bin/env which sp >/dev/null || \
 | 	@/usr/bin/env which sp >/dev/null || \
 | ||||||
| 	  (echo '"sp" is required for auto-compilation. darcs get http://joyful.com/darcsden/simon/searchpath, make it (cabal install-ing any needed packages) and add it to your PATH'; exit 1) | 	  (echo '"sp" is required for auto-compilation. darcs get http://joyful.com/darcsden/simon/searchpath, make it (cabal install-ing any needed packages) and add it to your PATH'; exit 1) | ||||||
| 
 | 
 | ||||||
| hledgerall: bin/hledger hledger-web | # force a compile even if binary exists, since we don't specify dependencies for these
 | ||||||
| 
 | .PHONY: bin/hledgerdev bin/hledgerp bin/hledgeropt bin/hledger-webdev | ||||||
| # force a compile even if binary exists, since we don't specify dependencies
 |  | ||||||
| .PHONY: bin/hledger hledger-web |  | ||||||
| 
 | 
 | ||||||
| # build hledger binary as quickly as possible
 | # build hledger binary as quickly as possible
 | ||||||
| bin/hledger: | bin/hledgerdev: | ||||||
| 	ghc --make $(MAIN) -o bin/hledger $(BUILDFLAGS) | 	ghc --make $(MAIN) -o bin/hledgerdev $(BUILDFLAGS) | ||||||
| 
 | 
 | ||||||
| # build a GHC-version-specific hledger binary without disturbing with other GHC version builds
 | # build a GHC-version-specific hledger binary without disturbing with other GHC version builds
 | ||||||
| bin/hledger.ghc-%: $(SOURCEFILES) | bin/hledgerdev.ghc-%: $(SOURCEFILES) | ||||||
| 	ghc-$* --make $(MAIN) -o $@ $(BUILDFLAGS)  -outputdir .ghc-$* | 	ghc-$* --make $(MAIN) -o $@ $(BUILDFLAGS)  -outputdir .ghc-$* | ||||||
| 
 | 
 | ||||||
| # build hledger with the main supported GHC versions
 | # build hledger with the main supported GHC versions
 | ||||||
| bin/hledger.ghcall: \ | bin/hledgerdev.ghcall: \ | ||||||
| 	bin/hledger.ghc-7.6.1 \
 | 	bin/hledgerdev.ghc-7.6.1 \
 | ||||||
| 	bin/hledger.ghc-7.4.1 \
 | 	bin/hledgerdev.ghc-7.4.1 \
 | ||||||
| 	bin/hledger.ghc-7.2.2 \
 | 	bin/hledgerdev.ghc-7.2.2 \
 | ||||||
| 	bin/hledger.ghc-7.0.4 \
 | 	bin/hledgerdev.ghc-7.0.4 \
 | ||||||
| #	bin/hledger.ghc-6.12.3 \
 | #	bin/hledgerdev.ghc-6.12.3 \
 | ||||||
| 
 | 
 | ||||||
| # build the fastest binary we can
 | # build the fastest binary we can
 | ||||||
| bin/hledgeropt: | bin/hledgeropt: | ||||||
| @ -185,7 +183,7 @@ hledgerhpc: | |||||||
| 
 | 
 | ||||||
| # build other executables quickly
 | # build other executables quickly
 | ||||||
| 
 | 
 | ||||||
| bin/hledger-web: | bin/hledger-webdev: | ||||||
| 	ghc --make -o $@ $(BUILDFLAGS) hledger-web/hledger-web.hs | 	ghc --make -o $@ $(BUILDFLAGS) hledger-web/hledger-web.hs | ||||||
| 
 | 
 | ||||||
| bin/hledger-web-production: | bin/hledger-web-production: | ||||||
| @ -308,9 +306,9 @@ hlinttest hlint: | |||||||
| # run unit tests
 | # run unit tests
 | ||||||
| unittest: unittest-builtin | unittest: unittest-builtin | ||||||
| 
 | 
 | ||||||
| unittest-builtin: bin/hledger | unittest-builtin: bin/hledgerdev | ||||||
| 	@echo unit tests: | 	@echo unit tests: | ||||||
| 	@(bin/hledger test \
 | 	@(bin/hledgerdev test \
 | ||||||
| 		&& echo $@ PASSED) || echo $@ FAILED | 		&& echo $@ PASSED) || echo $@ FAILED | ||||||
| 
 | 
 | ||||||
| # XXX doesn't rebuild on hledger source changes
 | # XXX doesn't rebuild on hledger source changes
 | ||||||
| @ -327,23 +325,23 @@ unittest-interpreted: | |||||||
| 
 | 
 | ||||||
| # run functional tests, requires shelltestrunner >= 0.9 from hackage
 | # run functional tests, requires shelltestrunner >= 0.9 from hackage
 | ||||||
| # 16 threads sometimes gives "commitAndReleaseBuffer: resource vanished (Broken pipe)" here but seems harmless
 | # 16 threads sometimes gives "commitAndReleaseBuffer: resource vanished (Broken pipe)" here but seems harmless
 | ||||||
| functest: bin/hledger | functest: bin/hledgerdev | ||||||
| 	@echo functional tests: | 	@echo functional tests: | ||||||
| 	($(SHELLTEST) tests -- --threads=16 --hide-successes \
 | 	($(SHELLTEST) tests -- --threads=16 --hide-successes \
 | ||||||
| 		&& echo $@ PASSED) || echo $@ FAILED | 		&& echo $@ PASSED) || echo $@ FAILED | ||||||
| 
 | 
 | ||||||
| # run unit and functional tests with a specific GHC version
 | # run unit and functional tests with a specific GHC version
 | ||||||
| # some functional tests (add, include, read-csv..) have bin/hledger hard coded - might need to symlink it
 | # some functional tests (add, include, read-csv..) have bin/hledgerdev hard coded - might need to symlink it
 | ||||||
| test-ghc-%: # bin/hledger.ghc-$*
 | test-ghc-%: # bin/hledgerdev.ghc-$*
 | ||||||
| 	@echo; echo testing hledger built with ghc-$* | 	@echo; echo testing hledger built with ghc-$* | ||||||
| 	@(echo unit tests: \
 | 	@(echo unit tests: \
 | ||||||
| 	&& bin/hledger.ghc-$* test \
 | 	&& bin/hledgerdev.ghc-$* test \
 | ||||||
| 	&& echo functional tests: \
 | 	&& echo functional tests: \
 | ||||||
| 	&& $(SHELLTEST) tests -w bin/hledger.ghc-$* -- --threads=16 --hide-successes \
 | 	&& $(SHELLTEST) tests -w bin/hledgerdev.ghc-$* -- --threads=16 --hide-successes \
 | ||||||
| 	&& echo $@ PASSED) || echo $@ FAILED | 	&& echo $@ PASSED) || echo $@ FAILED | ||||||
| 
 | 
 | ||||||
| # run unit and functional tests with main supported GHC versions
 | # run unit and functional tests with main supported GHC versions
 | ||||||
| test-ghcall: bin/hledger.ghcall \ | test-ghcall: bin/hledgerdev.ghcall \ | ||||||
| 	test-ghc-7.6.1 \
 | 	test-ghc-7.6.1 \
 | ||||||
| 	test-ghc-7.4.1 \
 | 	test-ghc-7.4.1 \
 | ||||||
| 	test-ghc-7.2.2 \
 | 	test-ghc-7.2.2 \
 | ||||||
| @ -855,7 +853,7 @@ clean: | |||||||
| 	rm -rf `find . -name "*.o" -o -name "*.hi" -o -name "*~" -o -name "darcs-amend-record*" -o -name "*-darcs-backup*" | grep -v .virthualenv` | 	rm -rf `find . -name "*.o" -o -name "*.hi" -o -name "*~" -o -name "darcs-amend-record*" -o -name "*-darcs-backup*" | grep -v .virthualenv` | ||||||
| 
 | 
 | ||||||
| cleanbin: | cleanbin: | ||||||
| 	rm -f bin/hledger bin/hledger.ghc* | 	rm -f bin/hledgerdev bin/hledgerdev.ghc* | ||||||
| 
 | 
 | ||||||
| Clean: clean cleanbin cleandocs | Clean: clean cleanbin cleandocs | ||||||
| 	rm -f TAGS tags | 	rm -f TAGS tags | ||||||
|  | |||||||
| @ -2,14 +2,14 @@ | |||||||
| # data validation | # data validation | ||||||
| # | # | ||||||
| # 1. should prompt again for a bad date | # 1. should prompt again for a bad date | ||||||
| bin/hledger -f $$-add.j add; rm -f $$-add.j | hledgerdev -f $$-add.j add; rm -f $$-add.j | ||||||
| <<< | <<< | ||||||
| 2009/1/32 | 2009/1/32 | ||||||
| >>> /date, or \. to end.*: date, or \. to end.*/ | >>> /date, or \. to end.*: date, or \. to end.*/ | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. should accept a blank date | # 2. should accept a blank date | ||||||
| bin/hledger -f $$-add.j add; rm -f $$-add.j | hledgerdev -f $$-add.j add; rm -f $$-add.j | ||||||
| <<< | <<< | ||||||
| 
 | 
 | ||||||
| >>> /date,.*: description/ | >>> /date,.*: description/ | ||||||
| @ -19,7 +19,7 @@ bin/hledger -f $$-add.j add; rm -f $$-add.j | |||||||
| # precision and commodity handling | # precision and commodity handling | ||||||
| # | # | ||||||
| # 3. simple add with no existing journal, no commodity entered | # 3. simple add with no existing journal, no commodity entered | ||||||
| bin/hledger -f $$-add.j add; rm -f $$-add.j | hledgerdev -f $$-add.j add; rm -f $$-add.j | ||||||
| <<< | <<< | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -32,7 +32,7 @@ b | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 4. default commodity with greater precision | # 4. default commodity with greater precision | ||||||
|  printf 'D $1000.00\n' >t$$.j; bin/hledger -f t$$.j add >/dev/null; cat t$$.j; rm -f t$$.j |  printf 'D $1000.00\n' >t$$.j; hledgerdev -f t$$.j add >/dev/null; cat t$$.j; rm -f t$$.j | ||||||
| <<< | <<< | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -45,7 +45,7 @@ b | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 5. default commodity with less precision | # 5. default commodity with less precision | ||||||
|  printf 'D $1000.0\n' >t$$.j; bin/hledger -f t$$.j add >/dev/null; cat t$$.j; rm -f t$$.j |  printf 'D $1000.0\n' >t$$.j; hledgerdev -f t$$.j add >/dev/null; cat t$$.j; rm -f t$$.j | ||||||
| <<< | <<< | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -58,7 +58,7 @@ b | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 6. existing commodity with greater precision | # 6. existing commodity with greater precision | ||||||
|  printf '2010/1/1\n a  $1000.00\n b\n' >t$$.j; bin/hledger -f t$$.j add >/dev/null; cat t$$.j; rm -f t$$.j |  printf '2010/1/1\n a  $1000.00\n b\n' >t$$.j; hledgerdev -f t$$.j add >/dev/null; cat t$$.j; rm -f t$$.j | ||||||
| <<< | <<< | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -71,7 +71,7 @@ b | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 7. existing commodity with less precision | # 7. existing commodity with less precision | ||||||
|  printf '2010/1/1\n a  $1000.0\n b\n' >t$$.j; bin/hledger -f t$$.j add >/dev/null; cat t$$.j; rm -f t$$.j |  printf '2010/1/1\n a  $1000.0\n b\n' >t$$.j; hledgerdev -f t$$.j add >/dev/null; cat t$$.j; rm -f t$$.j | ||||||
| <<< | <<< | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -85,7 +85,7 @@ b | |||||||
| 
 | 
 | ||||||
| # 8. no commodity entered, the (most recent) default commodity should be applied | # 8. no commodity entered, the (most recent) default commodity should be applied | ||||||
| # (and a non-ascii commodity symbol should work) | # (and a non-ascii commodity symbol should work) | ||||||
|  printf 'D $1000.0\nD £1,000.00\n' >t$$.j; bin/hledger -f t$$.j add; cat t$$.j; rm -f t$$.j |  printf 'D $1000.0\nD £1,000.00\n' >t$$.j; hledgerdev -f t$$.j add; cat t$$.j; rm -f t$$.j | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
| 
 | 
 | ||||||
| @ -98,7 +98,7 @@ b | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 9. default amounts should not fail to balance due to precision | # 9. default amounts should not fail to balance due to precision | ||||||
| rm -f nosuch.journal; bin/hledger -f nosuch.journal add; rm -f nosuch.journal | rm -f nosuch.journal; hledgerdev -f nosuch.journal add; rm -f nosuch.journal | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
| x | x | ||||||
| @ -111,8 +111,8 @@ c | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| ## 10. shouldn't add decimals if there aren't any | ## 10. shouldn't add decimals if there aren't any | ||||||
| ## printf '\n\na\n1\nb\n' | bin/hledger -f /dev/null add | ## printf '\n\na\n1\nb\n' | hledgerdev -f /dev/null add | ||||||
| # bin/hledger -f /dev/null add | # hledgerdev -f /dev/null add | ||||||
| # <<< | # <<< | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ | |||||||
| 
 | 
 | ||||||
| # 1. command-line --alias option.  Note multiple applicable aliases, but | # 1. command-line --alias option.  Note multiple applicable aliases, but | ||||||
| # only one is applied per account name.  Spaces are allowed if quoted. | # only one is applied per account name.  Spaces are allowed if quoted. | ||||||
| bin/hledger -f- print --alias 'a a=A' --alias b=B | hledgerdev -f- print --alias 'a a=A' --alias b=B | ||||||
| <<< | <<< | ||||||
| 2011/01/01 | 2011/01/01 | ||||||
|     a a  1 |     a a  1 | ||||||
| @ -16,7 +16,7 @@ bin/hledger -f- print --alias 'a a=A' --alias b=B | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. alias directive, and an account with unbalanced posting indicators. | # 2. alias directive, and an account with unbalanced posting indicators. | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| alias b=B | alias b=B | ||||||
| 
 | 
 | ||||||
| @ -32,7 +32,7 @@ alias b=B | |||||||
| # 3. --alias options run after alias directives. Subaccounts are also | # 3. --alias options run after alias directives. Subaccounts are also | ||||||
| # matched and rewritten. Accounts with an internal part matching the alias | # matched and rewritten. Accounts with an internal part matching the alias | ||||||
| # are ignored. | # are ignored. | ||||||
| bin/hledger -f- print --alias a=A --alias B=C | hledgerdev -f- print --alias a=A --alias B=C | ||||||
| <<< | <<< | ||||||
| alias a=B | alias a=B | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| # amount layout tests, using default vertical layout | # amount layout tests, using default vertical layout | ||||||
| # 1. print | # 1. print | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|     a  EUR 1  ; a euro |     a  EUR 1  ; a euro | ||||||
| @ -16,7 +16,7 @@ bin/hledger -f - print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. register | # 2. register | ||||||
| bin/hledger -f - register | hledgerdev -f - register | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|     a  EUR 1  ; a euro |     a  EUR 1  ; a euro | ||||||
| @ -31,7 +31,7 @@ bin/hledger -f - register | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. balance | # 3. balance | ||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|     a  EUR 1  ; a euro |     a  EUR 1  ; a euro | ||||||
| @ -48,7 +48,7 @@ bin/hledger -f - balance | |||||||
| 
 | 
 | ||||||
| # 4. mixed amounts with prices | # 4. mixed amounts with prices | ||||||
| # XXX | # XXX | ||||||
| # bin/hledger -f - print | # hledgerdev -f - print | ||||||
| # <<< | # <<< | ||||||
| # 2010/1/1 | # 2010/1/1 | ||||||
| #     a  EUR 1 @ USD 1.1 ; a euro | #     a  EUR 1 @ USD 1.1 ; a euro | ||||||
| @ -70,7 +70,7 @@ bin/hledger -f - balance | |||||||
| #>>>=0 | #>>>=0 | ||||||
| # | # | ||||||
| # # | # # | ||||||
| # bin/hledger -f - register | # hledgerdev -f - register | ||||||
| # <<< | # <<< | ||||||
| # 2010/1/1 | # 2010/1/1 | ||||||
| #     a  EUR 1 @ USD 1.1 ; a euro | #     a  EUR 1 @ USD 1.1 ; a euro | ||||||
| @ -85,7 +85,7 @@ bin/hledger -f - balance | |||||||
| #>>>=0 | #>>>=0 | ||||||
| # | # | ||||||
| # # | # # | ||||||
| # bin/hledger -f - balance | # hledgerdev -f - balance | ||||||
| # <<< | # <<< | ||||||
| # 2010/1/1 | # 2010/1/1 | ||||||
| #     a  EUR 1 @ USD 1.1 ; a euro | #     a  EUR 1 @ USD 1.1 ; a euro | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f data/sample.journal balance --format="%30(account) %-.20(total)" | hledgerdev -f data/sample.journal balance --format="%30(account) %-.20(total)" | ||||||
| >>> | >>> | ||||||
|                         assets $-1 |                         assets $-1 | ||||||
|                    bank:saving $1 |                    bank:saving $1 | ||||||
| @ -12,4 +12,4 @@ bin/hledger -f data/sample.journal balance --format="%30(account) %-.20(total)" | |||||||
|              liabilities:debts $1 |              liabilities:debts $1 | ||||||
| -------------------- | -------------------- | ||||||
|                    0 |                    0 | ||||||
| >>>= 0 | >>>= 0 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # 1 | # 1 | ||||||
| bin/hledger -f data/sample.journal balance --no-total --depth 1 | hledgerdev -f data/sample.journal balance --no-total --depth 1 | ||||||
| >>> | >>> | ||||||
|                  $-1  assets |                  $-1  assets | ||||||
|                   $2  expenses |                   $2  expenses | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| #!/usr/bin/env shelltest | #!/usr/bin/env shelltest | ||||||
| # 1. One commodity. Zero accounts should be elided but the final total should not. | # 1. One commodity. Zero accounts should be elided but the final total should not. | ||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| 2010/04/01 tr1 | 2010/04/01 tr1 | ||||||
|   a   16$ |   a   16$ | ||||||
| @ -15,7 +15,7 @@ bin/hledger -f - balance | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. An uninteresting parent account (with same balance as its single subaccount) is elided by default, like ledger | # 2. An uninteresting parent account (with same balance as its single subaccount) is elided by default, like ledger | ||||||
| bin/hledger -f - balance --no-total | hledgerdev -f - balance --no-total | ||||||
| <<< | <<< | ||||||
| 1/1 | 1/1 | ||||||
|   (a:b)   1 |   (a:b)   1 | ||||||
| @ -24,7 +24,7 @@ bin/hledger -f - balance --no-total | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. But not with --no-elide | # 3. But not with --no-elide | ||||||
| bin/hledger -f - balance --no-total --no-elide | hledgerdev -f - balance --no-total --no-elide | ||||||
| <<< | <<< | ||||||
| 1/1 | 1/1 | ||||||
|   (a:b)   1 |   (a:b)   1 | ||||||
| @ -34,7 +34,7 @@ bin/hledger -f - balance --no-total --no-elide | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 4. Nor when it has more than one subaccount | # 4. Nor when it has more than one subaccount | ||||||
| bin/hledger -f - balance --no-total | hledgerdev -f - balance --no-total | ||||||
| <<< | <<< | ||||||
| 1/1 | 1/1 | ||||||
|   (a:b)    1 |   (a:b)    1 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # | # | ||||||
| bin/hledger -f- balance | hledgerdev -f- balance | ||||||
| <<< | <<< | ||||||
| 1/1 | 1/1 | ||||||
|   a   1.00 |   a   1.00 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # 1. | # 1. | ||||||
| bin/hledger -f data/sample.journal balance | hledgerdev -f data/sample.journal balance | ||||||
| >>> | >>> | ||||||
|                  $-1  assets |                  $-1  assets | ||||||
|                   $1    bank:saving |                   $1    bank:saving | ||||||
| @ -16,7 +16,7 @@ bin/hledger -f data/sample.journal balance | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2.  | # 2.  | ||||||
| bin/hledger -f data/sample.journal balance o | hledgerdev -f data/sample.journal balance o | ||||||
| >>> | >>> | ||||||
|                   $1  expenses:food |                   $1  expenses:food | ||||||
|                  $-2  income |                  $-2  income | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| # comment tests | # comment tests | ||||||
| 
 | 
 | ||||||
| # 1.  | # 1.  | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2009/01/01 x  ; transaction comment 1 | 2009/01/01 x  ; transaction comment 1 | ||||||
|     ; transaction comment 2 |     ; transaction comment 2 | ||||||
| @ -16,7 +16,7 @@ bin/hledger -f - print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2.  | # 2.  | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2009/01/01 x | 2009/01/01 x | ||||||
|     a  1 |     a  1 | ||||||
| @ -30,7 +30,7 @@ bin/hledger -f - print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. print should preserve comments | # 3. print should preserve comments | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| ; isolated journal comment | ; isolated journal comment | ||||||
| 
 | 
 | ||||||
| @ -50,7 +50,7 @@ bin/hledger -f - print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 4. a posting comment should appear in print | # 4. a posting comment should appear in print | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2010/01/01 x | 2010/01/01 x | ||||||
|     a             1  ; comment |     a             1  ; comment | ||||||
| @ -65,7 +65,7 @@ bin/hledger -f - print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 5. a posting comment should not appear in register | # 5. a posting comment should not appear in register | ||||||
| bin/hledger -f - register | hledgerdev -f - register | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|     a  1 ; comment |     a  1 ; comment | ||||||
|  | |||||||
| @ -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 | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010-04-05 x | 2010-04-05 x | ||||||
|    a   10 DE0002635307 |    a   10 DE0002635307 | ||||||
| @ -8,7 +8,7 @@ bin/hledger -f- print | |||||||
| >>>2 /unexpected "0"/ | >>>2 /unexpected "0"/ | ||||||
| >>>= 1 | >>>= 1 | ||||||
| # 2. with quotes, ok; quotes appear in print output | # 2. with quotes, ok; quotes appear in print output | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010-04-05 x | 2010-04-05 x | ||||||
|    a   10 "DE 0002 635307" |    a   10 "DE 0002 635307" | ||||||
| @ -21,7 +21,7 @@ bin/hledger -f- print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. and in other reports too, I guess | # 3. and in other reports too, I guess | ||||||
| bin/hledger -f- balance | hledgerdev -f- balance | ||||||
| <<< | <<< | ||||||
| 2010-04-05 x | 2010-04-05 x | ||||||
|    a   10 "DE0002635307" |    a   10 "DE0002635307" | ||||||
|  | |||||||
| @ -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) | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2009/1/1 x | 2009/1/1 x | ||||||
|     a         $1.25 |     a         $1.25 | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ | |||||||
| # commodity-less amounts in subsequent transactions. | # commodity-less amounts in subsequent transactions. | ||||||
| 
 | 
 | ||||||
| # 1. no default commodity | # 1. no default commodity | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|   a  1000 |   a  1000 | ||||||
| @ -15,7 +15,7 @@ bin/hledger -f- print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. pound, two decimal places, no digit group separator | # 2. pound, two decimal places, no digit group separator | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| D £1000.00 | D £1000.00 | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
| @ -29,7 +29,7 @@ D £1000.00 | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. dollar, comma decimal point, three decimal places, no digit group separator | # 3. dollar, comma decimal point, three decimal places, no digit group separator | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| D $1,000 | D $1,000 | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
| @ -43,7 +43,7 @@ D $1,000 | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 4. dollar, three digit group separator, one decimal place | # 4. dollar, three digit group separator, one decimal place | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| D $1,000.0 | D $1,000.0 | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
| @ -56,7 +56,7 @@ D $1,000.0 | |||||||
| 
 | 
 | ||||||
| # 5. as above, sets the commodity of the commodityless amount, but an | # 5. as above, sets the commodity of the commodityless amount, but an | ||||||
| # earlier explicit dollar amount sets the display settings for dollar | # earlier explicit dollar amount sets the display settings for dollar | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| D $1,000.0 | D $1,000.0 | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
| @ -71,7 +71,7 @@ D $1,000.0 | |||||||
| 
 | 
 | ||||||
| # 6. as above, but the commodityless amount is earliest, so it sets the | # 6. as above, but the commodityless amount is earliest, so it sets the | ||||||
| # display settings for dollar. The greatest precision is preserved though. | # display settings for dollar. The greatest precision is preserved though. | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| D $1,000.0 | D $1,000.0 | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - balance -p 'in 2009' --effective | hledgerdev -f - balance -p 'in 2009' --effective | ||||||
| <<< | <<< | ||||||
| 2009/1/1 x | 2009/1/1 x | ||||||
|   a  1 |   a  1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2009/1/1=2010/1/1 x | 2009/1/1=2010/1/1 x | ||||||
|   a  1 |   a  1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - register --effective | hledgerdev -f - register --effective | ||||||
| <<< | <<< | ||||||
| 2009/1/1=2010/1/1 x | 2009/1/1=2010/1/1 x | ||||||
|   a  1 |   a  1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2009/1/1 x | 2009/1/1 x | ||||||
|  aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa  €1 |  aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa  €1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f- register | hledgerdev -f- register | ||||||
| <<< | <<< | ||||||
| 2009/1/1 x aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa  €1 | 2009/1/1 x aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa:aaaaaaaaaaaaaaaaaaaa  €1 | ||||||
|  b |  b | ||||||
|  | |||||||
| @ -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 | ||||||
| bin/hledger -f - print --effective -p 2009/1/2 | hledgerdev -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 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # 1. account pattern with space | # 1. account pattern with space | ||||||
| bin/hledger -f- register 'a a' | hledgerdev -f- register 'a a' | ||||||
| <<< | <<< | ||||||
| 2010/3/1 x | 2010/3/1 x | ||||||
|   a a  1 |   a a  1 | ||||||
| @ -10,7 +10,7 @@ bin/hledger -f- register 'a a' | |||||||
| 
 | 
 | ||||||
| # | # | ||||||
| # 2. description pattern with space | # 2. description pattern with space | ||||||
| bin/hledger -f- register desc:'x x' | hledgerdev -f- register desc:'x x' | ||||||
| <<< | <<< | ||||||
| 2010/3/1 x | 2010/3/1 x | ||||||
|   a  1 |   a  1 | ||||||
| @ -26,7 +26,7 @@ bin/hledger -f- register desc:'x x' | |||||||
| 
 | 
 | ||||||
| # | # | ||||||
| # 3. multiple patterns, spaced and punctuated patterns | # 3. multiple patterns, spaced and punctuated patterns | ||||||
| bin/hledger -f- register 'a a' "'b" | hledgerdev -f- register 'a a' "'b" | ||||||
| <<< | <<< | ||||||
| 2011/9/11 | 2011/9/11 | ||||||
|   a a  1 |   a a  1 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # nested includes in subdirectories | # nested includes in subdirectories | ||||||
|  mkdir -p b/c/d ; printf '2010/1/1\n (D)  1\n' >b/c/d/d.journal ; printf '2010/1/1\n (C)  1\n!include d/d.journal\n' >b/c/c.journal ; printf '2010/1/1\n (B)  1\n!include c/c.journal\n' >b/b.journal ; printf '2010/1/1\n (A)  1\n!include b/b.journal\n' >a.journal ; bin/hledger -f a.journal print; rm -rf a.journal b |  mkdir -p b/c/d ; printf '2010/1/1\n (D)  1\n' >b/c/d/d.journal ; printf '2010/1/1\n (C)  1\n!include d/d.journal\n' >b/c/c.journal ; printf '2010/1/1\n (B)  1\n!include c/c.journal\n' >b/b.journal ; printf '2010/1/1\n (A)  1\n!include b/b.journal\n' >a.journal ; hledgerdev -f a.journal print; rm -rf a.journal b | ||||||
| >>> | >>> | ||||||
| 2010/01/01 | 2010/01/01 | ||||||
|     (A)             1 |     (A)             1 | ||||||
|  | |||||||
| @ -1,12 +1,12 @@ | |||||||
| # commands should generally autocreate an empty journal when missing, see also add*.test | # commands should generally autocreate an empty journal when missing, see also add*.test | ||||||
| # $$ used for safe concurrent test running, may be a bash-ism | # $$ used for safe concurrent test running, may be a bash-ism | ||||||
| 
 | 
 | ||||||
| bin/hledger register -f no-such-file-$$; rm -f no-such-file-$$ | hledgerdev register -f no-such-file-$$; rm -f no-such-file-$$ | ||||||
| >>> | >>> | ||||||
| >>>2 /journal file.*not found/ | >>>2 /journal file.*not found/ | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| bin/hledger balance --no-total -f no-such-file-$$; rm -f no-such-file-$$ | hledgerdev balance --no-total -f no-such-file-$$; rm -f no-such-file-$$ | ||||||
| >>> | >>> | ||||||
| >>>2 /journal file.*not found/ | >>>2 /journal file.*not found/ | ||||||
| >>>=0 | >>>=0 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| # bin/hledger -f - balance -E | # hledgerdev -f - balance -E | ||||||
| # <<< | # <<< | ||||||
| # 2009/1/1 x | # 2009/1/1 x | ||||||
| #  a:  13 | #  a:  13 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2009-01-01 x | 2009-01-01 x | ||||||
|   a  2 |   a  2 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # 1. accept a blank description | # 1. accept a blank description | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010/1/1  | 2010/1/1  | ||||||
|   a  1 |   a  1 | ||||||
| @ -8,7 +8,7 @@ bin/hledger -f- print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. same, but no separator space after the date | # 2. same, but no separator space after the date | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|   a  1 |   a  1 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| # invalid dates should be rejected | # invalid dates should be rejected | ||||||
| # 1. valid month and day, but flipped | # 1. valid month and day, but flipped | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010/31/12 x | 2010/31/12 x | ||||||
|    a  1 |    a  1 | ||||||
| @ -8,7 +8,7 @@ bin/hledger -f- print | |||||||
| >>>2 /bad date/ | >>>2 /bad date/ | ||||||
| >>>= 1 | >>>= 1 | ||||||
| # 2. too-large day | # 2. too-large day | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010/12/32 x | 2010/12/32 x | ||||||
|    a  1 |    a  1 | ||||||
| @ -16,7 +16,7 @@ bin/hledger -f- print | |||||||
| >>>2 /bad date/ | >>>2 /bad date/ | ||||||
| >>>= 1 | >>>= 1 | ||||||
| # 3. 29th feb on leap year should be ok | # 3. 29th feb on leap year should be ok | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2000/2/29 x | 2000/2/29 x | ||||||
|    a  1 |    a  1 | ||||||
| @ -28,7 +28,7 @@ bin/hledger -f- print | |||||||
| 
 | 
 | ||||||
| >>>= 0 | >>>= 0 | ||||||
| # 4. 29th feb on non-leap year should fail | # 4. 29th feb on non-leap year should fail | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2001/2/29 x | 2001/2/29 x | ||||||
|    a  1 |    a  1 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # can we parse this sample journal from c++ ledger source | # can we parse this sample journal from c++ ledger source | ||||||
| bin/hledger -f- stats | hledgerdev -f- stats | ||||||
| <<< | <<< | ||||||
| ; -*- ledger -*- | ; -*- ledger -*- | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # should give an accurate parse error location | # should give an accurate parse error location | ||||||
| # bin/hledger -f- stat | # hledgerdev -f- stat | ||||||
| # <<< | # <<< | ||||||
| # 2010/1/1 x | # 2010/1/1 x | ||||||
| #   a  1 | #   a  1 | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ | |||||||
| # | # | ||||||
| # 1. original test case, this should balance since price precisions do | # 1. original test case, this should balance since price precisions do | ||||||
| # not affect the canonical display precisions used for display and balancing | # not affect the canonical display precisions used for display and balancing | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|    A  55.3653 C @ 30.92189512 D |    A  55.3653 C @ 30.92189512 D | ||||||
| @ -16,7 +16,7 @@ bin/hledger -f - print | |||||||
| 
 | 
 | ||||||
| ## 1b. here $'s canonical display precision should be 2 not 4 | ## 1b. here $'s canonical display precision should be 2 not 4 | ||||||
| ## XXX no, because the inferred amount $1.0049 is observed | ## XXX no, because the inferred amount $1.0049 is observed | ||||||
| # bin/hledger -f - print --cost | # hledgerdev -f - print --cost | ||||||
| # <<< | # <<< | ||||||
| # 2010/1/1 | # 2010/1/1 | ||||||
| #    a  $0.00 | #    a  $0.00 | ||||||
| @ -32,7 +32,7 @@ bin/hledger -f - print | |||||||
| 
 | 
 | ||||||
| # 2. and here the price should be printed with its original precision, not | # 2. and here the price should be printed with its original precision, not | ||||||
| # the canonical display precision | # the canonical display precision | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|    a  $0.00 |    a  $0.00 | ||||||
| @ -48,7 +48,7 @@ bin/hledger -f - print | |||||||
| 
 | 
 | ||||||
| # 3. with $'s display precision at 3 or more, this txn should not balance. | # 3. with $'s display precision at 3 or more, this txn should not balance. | ||||||
| # The error message shows the difference with full precision. | # The error message shows the difference with full precision. | ||||||
| bin/hledger -f - balance --no-total --cost --empty | hledgerdev -f - balance --no-total --cost --empty | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|    a  1C @ $1.0049 |    a  1C @ $1.0049 | ||||||
| @ -57,7 +57,7 @@ bin/hledger -f - balance --no-total --cost --empty | |||||||
| >>>= 1 | >>>= 1 | ||||||
| 
 | 
 | ||||||
| # 4. with $'s display precision at 2 or less, this txn should balance | # 4. with $'s display precision at 2 or less, this txn should balance | ||||||
| bin/hledger -f - balance --no-total --cost --empty | hledgerdev -f - balance --no-total --cost --empty | ||||||
| <<< | <<< | ||||||
| 2010/1/1 | 2010/1/1 | ||||||
|    a  1C @ $1.0049 |    a  1C @ $1.0049 | ||||||
| @ -67,7 +67,7 @@ bin/hledger -f - balance --no-total --cost --empty | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 5. avamk's 2011/1/19 example | # 5. avamk's 2011/1/19 example | ||||||
| bin/hledger -f - balance --cost | hledgerdev -f - balance --cost | ||||||
| <<< | <<< | ||||||
| 2001/01/01 * ACME fund | 2001/01/01 * ACME fund | ||||||
|            assets:investment:ACME     203.890 ACME @ $16.02 |            assets:investment:ACME     203.890 ACME @ $16.02 | ||||||
| @ -95,7 +95,7 @@ bin/hledger -f - balance --cost | |||||||
| #                   0 | #                   0 | ||||||
| ## 6. with a default commodity.. XXX should observe it | ## 6. with a default commodity.. XXX should observe it | ||||||
| 
 | 
 | ||||||
| bin/hledger -f - balance --cost | hledgerdev -f - balance --cost | ||||||
| <<< | <<< | ||||||
| D $1000.0 | D $1000.0 | ||||||
| 2001/01/01 * ACME fund | 2001/01/01 * ACME fund | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| # price-related tests | # price-related tests | ||||||
| # 1. print a transaction with an explicit unit price | # 1. print a transaction with an explicit unit price | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2011/01/01 | 2011/01/01 | ||||||
|     expenses:foreign currency       €100 @ $1.35 |     expenses:foreign currency       €100 @ $1.35 | ||||||
| @ -13,7 +13,7 @@ bin/hledger -f- print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. -B/--cost converts to the price's commodity ("cost") | # 2. -B/--cost converts to the price's commodity ("cost") | ||||||
| bin/hledger -f- print --cost | hledgerdev -f- print --cost | ||||||
| <<< | <<< | ||||||
| 2011/01/01 | 2011/01/01 | ||||||
|     expenses:foreign currency       €100 @ $1.35 |     expenses:foreign currency       €100 @ $1.35 | ||||||
| @ -26,7 +26,7 @@ bin/hledger -f- print --cost | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. -B should ignore historical price directives | # 3. -B should ignore historical price directives | ||||||
| bin/hledger -f- print -B | hledgerdev -f- print -B | ||||||
| <<< | <<< | ||||||
| P 2011/01/01 € $1.35 | P 2011/01/01 € $1.35 | ||||||
| 
 | 
 | ||||||
| @ -42,7 +42,7 @@ P 2011/01/01 € $1.35 | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 4. print a transaction with a total price | # 4. print a transaction with a total price | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2011/01/01 | 2011/01/01 | ||||||
|     expenses:foreign currency       €100 @@ $135 |     expenses:foreign currency       €100 @@ $135 | ||||||
| @ -56,7 +56,7 @@ bin/hledger -f - print | |||||||
| 
 | 
 | ||||||
| # 5. when the balance has exactly two commodities, both unpriced, infer an | # 5. when the balance has exactly two commodities, both unpriced, infer an | ||||||
| # implicit conversion price for the first one in terms of the second. | # implicit conversion price for the first one in terms of the second. | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2011/01/01 | 2011/01/01 | ||||||
|     expenses:foreign currency       €100 |     expenses:foreign currency       €100 | ||||||
| @ -79,7 +79,7 @@ bin/hledger -f - print | |||||||
| # # 6. when the *cost-basis* balance has exactly two commodities, both | # # 6. when the *cost-basis* balance has exactly two commodities, both | ||||||
| # # unpriced, infer an implicit conversion price for the first one in terms | # # unpriced, infer an implicit conversion price for the first one in terms | ||||||
| # # of the second. | # # of the second. | ||||||
| # bin/hledger -f - print | # hledgerdev -f - print | ||||||
| # <<< | # <<< | ||||||
| # 2011/01/01 | # 2011/01/01 | ||||||
| #     expenses:foreign currency       €100 | #     expenses:foreign currency       €100 | ||||||
| @ -98,7 +98,7 @@ bin/hledger -f - print | |||||||
| #     misc                         £-1 @@ 2 shekels | #     misc                         £-1 @@ 2 shekels | ||||||
| # | # | ||||||
| ## 7. another, from ledger tests. Just one posting to price so uses @@. | ## 7. another, from ledger tests. Just one posting to price so uses @@. | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2002/09/30 * 1a1a6305d06ce4b284dba0d267c23f69d70c20be | 2002/09/30 * 1a1a6305d06ce4b284dba0d267c23f69d70c20be | ||||||
|     c56a21d23a6535184e7152ee138c28974f14280c  866.231000 GGGGG |     c56a21d23a6535184e7152ee138c28974f14280c  866.231000 GGGGG | ||||||
| @ -111,7 +111,7 @@ bin/hledger -f - print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 8. when the balance has more than two commodities, don't bother | # 8. when the balance has more than two commodities, don't bother | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2011/01/01 | 2011/01/01 | ||||||
|     expenses:foreign currency       €100 |     expenses:foreign currency       €100 | ||||||
| @ -119,7 +119,7 @@ bin/hledger -f - print | |||||||
|     expenses:other                  £200 |     expenses:other                  £200 | ||||||
| >>>= !0 | >>>= !0 | ||||||
| # 9. another | # 9. another | ||||||
| bin/hledger -f - balance -B | hledgerdev -f - balance -B | ||||||
| <<< | <<< | ||||||
| 2011/01/01 | 2011/01/01 | ||||||
|     expenses:foreign currency        €99 |     expenses:foreign currency        €99 | ||||||
| @ -133,7 +133,7 @@ bin/hledger -f - balance -B | |||||||
|                    0 |                    0 | ||||||
| >>>=0 | >>>=0 | ||||||
| # 10. transaction in two commodities should balance out properly | # 10. transaction in two commodities should balance out properly | ||||||
| bin/hledger -f - balance --cost | hledgerdev -f - balance --cost | ||||||
| <<< | <<< | ||||||
| 2011/01/01 x | 2011/01/01 x | ||||||
|   a  10£ @@ 16$ |   a  10£ @@ 16$ | ||||||
| @ -147,7 +147,7 @@ bin/hledger -f - balance --cost | |||||||
| # 11. When commodity price is specified implicitly, transaction should | # 11. When commodity price is specified implicitly, transaction should | ||||||
| #     be considered balanced out even when first amount is negative | #     be considered balanced out even when first amount is negative | ||||||
| #     (that is, price for it should be determined properly, with proper sign) | #     (that is, price for it should be determined properly, with proper sign) | ||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| 2011/01/01 x | 2011/01/01 x | ||||||
|   a  -10£ |   a  -10£ | ||||||
| @ -161,7 +161,7 @@ bin/hledger -f - balance | |||||||
| >>>=0 | >>>=0 | ||||||
| # 12. When commodity price is specified implicitly, transaction should | # 12. When commodity price is specified implicitly, transaction should | ||||||
| #     NOT be considered balanced out when BOTH amounts are negative | #     NOT be considered balanced out when BOTH amounts are negative | ||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| 2011/01/01 x | 2011/01/01 x | ||||||
|   a  -10£ |   a  -10£ | ||||||
| @ -170,7 +170,7 @@ bin/hledger -f - balance | |||||||
| >>>=1 | >>>=1 | ||||||
| 
 | 
 | ||||||
| # 13. Differently-priced lots of a commodity should be merged in balance report | # 13. Differently-priced lots of a commodity should be merged in balance report | ||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| 2011/1/1 | 2011/1/1 | ||||||
|   (a)   £1 @ $2 |   (a)   £1 @ $2 | ||||||
| @ -184,7 +184,7 @@ bin/hledger -f - balance | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 14. this should balance | # 14. this should balance | ||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| 2011/1/1 | 2011/1/1 | ||||||
|     a  1h @ $10 |     a  1h @ $10 | ||||||
| @ -193,7 +193,7 @@ bin/hledger -f - balance | |||||||
| >>>= 0 | >>>= 0 | ||||||
| 
 | 
 | ||||||
| # 15. this should balance, ignoring the P | # 15. this should balance, ignoring the P | ||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| P 2011/11/15 EUR CHF 1.234 | P 2011/11/15 EUR CHF 1.234 | ||||||
| 2011/11/19 | 2011/11/19 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # print with negative account pattern should exclude transactions containing a matched posting | # print with negative account pattern should exclude transactions containing a matched posting | ||||||
| bin/hledger -f- print not:a | hledgerdev -f- print not:a | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   a   1 |   a   1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - print desc:x | hledgerdev -f - print desc:x | ||||||
| <<< | <<< | ||||||
| 2009/1/1 x | 2009/1/1 x | ||||||
|     a  1 |     a  1 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # print shows both dates. The second's year defaults to the first's. | # print shows both dates. The second's year defaults to the first's. | ||||||
| bin/hledger -f - print --effective | hledgerdev -f - print --effective | ||||||
| <<< | <<< | ||||||
| 2009/1/1=1/2 x | 2009/1/1=1/2 x | ||||||
|   a  1 |   a  1 | ||||||
| @ -13,7 +13,7 @@ bin/hledger -f - print --effective | |||||||
| >>>= 0 | >>>= 0 | ||||||
| 
 | 
 | ||||||
| # Effective date of 29 Feb on leap year should be valid | # Effective date of 29 Feb on leap year should be valid | ||||||
| bin/hledger -f - print --effective | hledgerdev -f - print --effective | ||||||
| <<< | <<< | ||||||
| 2001/2/27=2000/2/29 x | 2001/2/27=2000/2/29 x | ||||||
|   a  1 |   a  1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2009/1/1 x | 2009/1/1 x | ||||||
|  aaaaabbbbbcccccdddddeeeeefffffggggghhhhh   1 |  aaaaabbbbbcccccdddddeeeeefffffggggghhhhh   1 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # 1. read CSV to hledger journal format | # 1. read CSV to hledger journal format | ||||||
|  rm -rf t.rules$$; printf 'date-field 0\ndate-format %%d/%%Y/%%m\ndescription-field 1\namount-field 2\ncurrency $\nbase-account assets:myacct\n' >t.rules$$; echo '10/2009/09,Flubber Co,50' | bin/hledger -f- print --rules-file t.rules$$; rm -rf t.rules$$ |  rm -rf t.rules$$; printf 'date-field 0\ndate-format %%d/%%Y/%%m\ndescription-field 1\namount-field 2\ncurrency $\nbase-account assets:myacct\n' >t.rules$$; echo '10/2009/09,Flubber Co,50' | hledgerdev -f- print --rules-file t.rules$$; rm -rf t.rules$$ | ||||||
| >>> | >>> | ||||||
| 2009/09/10 Flubber Co | 2009/09/10 Flubber Co | ||||||
|     income:unknown          $-50 |     income:unknown          $-50 | ||||||
| @ -9,7 +9,7 @@ | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. reading CSV with in-field and out-field | # 2. reading CSV with in-field and out-field | ||||||
|  printf 'base-account Assets:MyAccount\ndate-field 0\ndate-format %%d/%%Y/%%m\ndescription-field 1\nin-field 2\nout-field 3\ncurrency $\n' >$$.rules ; bin/hledger -f- print --rules-file $$.rules; rm -rf $$.rules |  printf 'base-account Assets:MyAccount\ndate-field 0\ndate-format %%d/%%Y/%%m\ndescription-field 1\nin-field 2\nout-field 3\ncurrency $\n' >$$.rules ; hledgerdev -f- print --rules-file $$.rules; rm -rf $$.rules | ||||||
| <<< | <<< | ||||||
| 10/2009/09,Flubber Co,50, | 10/2009/09,Flubber Co,50, | ||||||
| 11/2009/09,Flubber Co,,50 | 11/2009/09,Flubber Co,,50 | ||||||
| @ -26,7 +26,7 @@ | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. report rules parse error | # 3. report rules parse error | ||||||
| # rm -rf t.rules$$; printf 'date-fiel 0\ndate-format %%d/%%Y/%%m\ndescription-field 1\namount-field 2\ncurrency $\nbase-account assets:myacct\n' >t.rules$$; echo '10/2009/09,Flubber Co,50' | bin/hledger convert --rules-file t.rules$$; rm -rf t.rules$$ | # rm -rf t.rules$$; printf 'date-fiel 0\ndate-format %%d/%%Y/%%m\ndescription-field 1\namount-field 2\ncurrency $\nbase-account assets:myacct\n' >t.rules$$; echo '10/2009/09,Flubber Co,50' | hledgerdev convert --rules-file t.rules$$; rm -rf t.rules$$ | ||||||
| # >>> | # >>> | ||||||
| # 2009/09/10 Flubber Co | # 2009/09/10 Flubber Co | ||||||
| #     income:unknown          $-50 | #     income:unknown          $-50 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # 1. register --depth N matches postings as usual but clips account names to N | # 1. register --depth N matches postings as usual but clips account names to N | ||||||
| bin/hledger -f - register aa --depth 1 | hledgerdev -f - register aa --depth 1 | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   a:aa:aaa      1 |   a:aa:aaa      1 | ||||||
| @ -9,7 +9,7 @@ bin/hledger -f - register aa --depth 1 | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. similar to above, postings with same clipped account name are not aggregated | # 2. similar to above, postings with same clipped account name are not aggregated | ||||||
| bin/hledger -f - register aa --depth 2 | hledgerdev -f - register aa --depth 2 | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   a:aa      1 |   a:aa      1 | ||||||
| @ -29,7 +29,7 @@ bin/hledger -f - register aa --depth 2 | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. as above, but with a reporting interval causing postings to be aggregated | # 3. as above, but with a reporting interval causing postings to be aggregated | ||||||
| bin/hledger -f - register aa --depth 1 --daily | hledgerdev -f - register aa --depth 1 --daily | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   a:aa      1 |   a:aa      1 | ||||||
| @ -48,7 +48,7 @@ bin/hledger -f - register aa --depth 1 --daily | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 4. with --cleared | # 4. with --cleared | ||||||
| bin/hledger -f - register a --depth 1 --cleared | hledgerdev -f - register a --depth 1 --cleared | ||||||
| <<< | <<< | ||||||
| 2012/1/1 * | 2012/1/1 * | ||||||
|   (a:aa)      1 |   (a:aa)      1 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # 1. monthly reporting interval, no end dates, shows just the intervals with data: | # 1. monthly reporting interval, no end dates, shows just the intervals with data: | ||||||
| bin/hledger -f- register --period 'monthly' | hledgerdev -f- register --period 'monthly' | ||||||
| <<< | <<< | ||||||
| 2011/2/1 | 2011/2/1 | ||||||
|   (a)  1 |   (a)  1 | ||||||
| @ -8,7 +8,7 @@ bin/hledger -f- register --period 'monthly' | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. or with a query pattern, just the intervals with matched data: | # 2. or with a query pattern, just the intervals with matched data: | ||||||
| bin/hledger -f- register --period 'monthly' b | hledgerdev -f- register --period 'monthly' b | ||||||
| <<< | <<< | ||||||
| 2011/1/1 | 2011/1/1 | ||||||
|   (a)  1 |   (a)  1 | ||||||
| @ -21,7 +21,7 @@ bin/hledger -f- register --period 'monthly' b | |||||||
| 
 | 
 | ||||||
| # 3. with --empty, show all intervals spanned by the journal | # 3. with --empty, show all intervals spanned by the journal | ||||||
| # (unlike current ledger, but more useful) | # (unlike current ledger, but more useful) | ||||||
| bin/hledger -f- register --period 'monthly' b --empty | hledgerdev -f- register --period 'monthly' b --empty | ||||||
| <<< | <<< | ||||||
| 2011/1/1 | 2011/1/1 | ||||||
|   (a)  1 |   (a)  1 | ||||||
| @ -38,7 +38,7 @@ bin/hledger -f- register --period 'monthly' b --empty | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 4. any specified begin/end dates limit the intervals reported | # 4. any specified begin/end dates limit the intervals reported | ||||||
| bin/hledger -f- register --period 'monthly to 2011/3/1' b --empty | hledgerdev -f- register --period 'monthly to 2011/3/1' b --empty | ||||||
| <<< | <<< | ||||||
| 2011/1/1 | 2011/1/1 | ||||||
|   (a)  1 |   (a)  1 | ||||||
| @ -54,7 +54,7 @@ bin/hledger -f- register --period 'monthly to 2011/3/1' b --empty | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 5. likewise for date-restricting display expressions | # 5. likewise for date-restricting display expressions | ||||||
| bin/hledger -f- register --period 'monthly to 2011/2/1' b --empty --display 'd<[2011/2/1]' | hledgerdev -f- register --period 'monthly to 2011/2/1' b --empty --display 'd<[2011/2/1]' | ||||||
| <<< | <<< | ||||||
| 2011/1/1 | 2011/1/1 | ||||||
|   (a)  1 |   (a)  1 | ||||||
|  | |||||||
| @ -1,11 +1,11 @@ | |||||||
| # 1. empty file | # 1. empty file | ||||||
| bin/hledger -f- stats | hledgerdev -f- stats | ||||||
| <<< | <<< | ||||||
| >>> /Accounts.* 0 \(depth 0\)/ | >>> /Accounts.* 0 \(depth 0\)/ | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. included files should be listed in parse order | # 2. included files should be listed in parse order | ||||||
|  touch a.j b.j; bin/hledger -f- stats; rm -f a.j b.j |  touch a.j b.j; hledgerdev -f- stats; rm -f a.j b.j | ||||||
| <<< | <<< | ||||||
| include a.j | include a.j | ||||||
| include b.j | include b.j | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| # filtering by transaction status | # filtering by transaction status | ||||||
| 
 | 
 | ||||||
| # 1. with --cleared, print shows cleared transactions only | # 1. with --cleared, print shows cleared transactions only | ||||||
| bin/hledger -f- print --cleared | hledgerdev -f- print --cleared | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   a  1 |   a  1 | ||||||
| @ -26,7 +26,7 @@ bin/hledger -f- print --cleared | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. with --uncleared, shows uncleared transactions only | # 2. with --uncleared, shows uncleared transactions only | ||||||
| bin/hledger -f- print --uncleared | hledgerdev -f- print --uncleared | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   a  1 |   a  1 | ||||||
| @ -47,7 +47,7 @@ bin/hledger -f- print --uncleared | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. can also have per-posting cleared status | # 2. can also have per-posting cleared status | ||||||
| bin/hledger -f- register --cleared | hledgerdev -f- register --cleared | ||||||
| <<< | <<< | ||||||
| 2012/1/1 | 2012/1/1 | ||||||
|   a  1 |   a  1 | ||||||
| @ -61,7 +61,7 @@ bin/hledger -f- register --cleared | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # 3. also works with balance as shown, same as ledger. Hmm. | # 3. also works with balance as shown, same as ledger. Hmm. | ||||||
| bin/hledger -f- balance --uncleared | hledgerdev -f- balance --uncleared | ||||||
| <<< | <<< | ||||||
| 2012/1/1 | 2012/1/1 | ||||||
|   a  1 |   a  1 | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| # 1. we parse metadata tags in transaction and posting comments. Currently, | # 1. we parse metadata tags in transaction and posting comments. Currently, | ||||||
| # - they can be on the same line and/or separate lines | # - they can be on the same line and/or separate lines | ||||||
| # - they are always printed on separate lines | # - they are always printed on separate lines | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2010/01/01  ; txntag1: txn val 1 | 2010/01/01  ; txntag1: txn val 1 | ||||||
|   ; txntag2: txn val 2 |   ; txntag2: txn val 2 | ||||||
| @ -26,7 +26,7 @@ bin/hledger -f - print | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 2. reports can filter by tag existence | # 2. reports can filter by tag existence | ||||||
| bin/hledger -f - print tag:foo | hledgerdev -f - print tag:foo | ||||||
| <<< | <<< | ||||||
| 2010/01/01 ; foo:bar | 2010/01/01 ; foo:bar | ||||||
|   a             1 |   a             1 | ||||||
| @ -55,7 +55,7 @@ bin/hledger -f - print tag:foo | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. or tag value | # 3. or tag value | ||||||
| bin/hledger -f - print tag:foo=bar | hledgerdev -f - print tag:foo=bar | ||||||
| <<< | <<< | ||||||
| 2010/01/01 | 2010/01/01 | ||||||
|   ; foo:bar |   ; foo:bar | ||||||
| @ -80,7 +80,7 @@ bin/hledger -f - print tag:foo=bar | |||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 4. postings inherit their transaction's tags | # 4. postings inherit their transaction's tags | ||||||
| bin/hledger -f - register tag:foo=bar | hledgerdev -f - register tag:foo=bar | ||||||
| <<< | <<< | ||||||
| 2010/01/01 | 2010/01/01 | ||||||
|   a             1  ; foo:bar |   a             1  ; foo:bar | ||||||
|  | |||||||
| @ -1,12 +1,12 @@ | |||||||
| # this gave a stack space overflow error with 0.8-0.9 due to infinite | # this gave a stack space overflow error with 0.8-0.9 due to infinite | ||||||
| # recursion in Posting and Transaction's equality tests: | # recursion in Posting and Transaction's equality tests: | ||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| i 2010/1/1 09:00:00 a:b | i 2010/1/1 09:00:00 a:b | ||||||
| o 2010/1/1 09:03:00 | o 2010/1/1 09:03:00 | ||||||
| >>>=0 | >>>=0 | ||||||
| # incidentally this didn't trigger it.. go figure | # incidentally this didn't trigger it.. go figure | ||||||
| #bin/hledger -f - balance | #hledgerdev -f - balance | ||||||
| #<<< | #<<< | ||||||
| #i 2010/1/1 09:00:00 a:b | #i 2010/1/1 09:00:00 a:b | ||||||
| #o 2010/1/1 09:02:00 | #o 2010/1/1 09:02:00 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # a timelog session is parsed as a similarly-named transaction with one virtual posting | # a timelog session is parsed as a similarly-named transaction with one virtual posting | ||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| i 2009/1/1 08:00:00 something | i 2009/1/1 08:00:00 something | ||||||
| o 2009/1/1 09:00:00 | o 2009/1/1 09:00:00 | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ | |||||||
| # 1. as in ledger, historical prices may contain a time and timezone. | # 1. as in ledger, historical prices may contain a time and timezone. | ||||||
| # hledger ignores them and uses 00:00 local time instead. | # hledger ignores them and uses 00:00 local time instead. | ||||||
| # XXX needs --value not --cost | # XXX needs --value not --cost | ||||||
| # bin/hledger -f - balance --no-total --cost | # hledgerdev -f - balance --no-total --cost | ||||||
| # <<< | # <<< | ||||||
| # P 2011/01/01 00:00:00      A $1 | # P 2011/01/01 00:00:00      A $1 | ||||||
| # P 2011/01/01 15:00:00-0100 A $2 | # P 2011/01/01 15:00:00-0100 A $2 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - register | hledgerdev -f - register | ||||||
| <<< | <<< | ||||||
| 2009/1/1 a | 2009/1/1 a | ||||||
|   b  1.1 |   b  1.1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - register τράπ | hledgerdev -f - register τράπ | ||||||
| <<< | <<< | ||||||
| 2009-01-01 проверка | 2009-01-01 проверка | ||||||
|   τράπεζα  10 руб |   τράπεζα  10 руб | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| 2009-01-01 проверка | 2009-01-01 проверка | ||||||
|   τράπεζα  10 руб |   τράπεζα  10 руб | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - register desc:аура | hledgerdev -f - register desc:аура | ||||||
| <<< | <<< | ||||||
| 2009-01-01 аура (cyrillic letters) | 2009-01-01 аура (cyrillic letters) | ||||||
|   bank  10 |   bank  10 | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| bin/hledger -f - balance | hledgerdev -f - balance | ||||||
| <<< | <<< | ||||||
| 2009-01-01 broken entry | 2009-01-01 broken entry | ||||||
|   дебит    1 |   дебит    1 | ||||||
|   кредит  -2 |   кредит  -2 | ||||||
| >>>2 /дебит/ | >>>2 /дебит/ | ||||||
| >>>= 1 | >>>= 1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - print | hledgerdev -f - print | ||||||
| <<< | <<< | ||||||
| 2009-01-01 проверка | 2009-01-01 проверка | ||||||
|  счёт:первый  1 |  счёт:первый  1 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| bin/hledger -f - register | hledgerdev -f - register | ||||||
| <<< | <<< | ||||||
| 2009-01-01 проверка | 2009-01-01 проверка | ||||||
|   τράπεζα  10 руб |   τράπεζα  10 руб | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| # 1. virtual posting shouldn't affect balance | # 1. virtual posting shouldn't affect balance | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2009/1/1 x | 2009/1/1 x | ||||||
|   (virtual)  100 |   (virtual)  100 | ||||||
| @ -8,7 +8,7 @@ bin/hledger -f- print | |||||||
| >>>=0 | >>>=0 | ||||||
| # | # | ||||||
| # 2. balanced virtual postings should be required to balance (themselves) | # 2. balanced virtual postings should be required to balance (themselves) | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   [balanced virtual]  10 |   [balanced virtual]  10 | ||||||
| @ -17,7 +17,7 @@ bin/hledger -f- print | |||||||
| >>>= !0 | >>>= !0 | ||||||
| # | # | ||||||
| # 3. balanced virtual postings should be required to balance (themselves) | # 3. balanced virtual postings should be required to balance (themselves) | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   [balanced virtual]  10 |   [balanced virtual]  10 | ||||||
| @ -27,7 +27,7 @@ bin/hledger -f- print | |||||||
| >>>=0 | >>>=0 | ||||||
| # | # | ||||||
| # 4. a virtual posting with implicit amount should be handled correctly | # 4. a virtual posting with implicit amount should be handled correctly | ||||||
| bin/hledger -f- print | hledgerdev -f- print | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   [a]    10 |   [a]    10 | ||||||
| @ -35,7 +35,7 @@ bin/hledger -f- print | |||||||
| >>>=0 | >>>=0 | ||||||
| # | # | ||||||
| # 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 | ||||||
| bin/hledger -f- balance | hledgerdev -f- balance | ||||||
| <<< | <<< | ||||||
| 2010/1/1 x | 2010/1/1 x | ||||||
|   a  1 |   a  1 | ||||||
|  | |||||||
| @ -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) | ||||||
| # | # | ||||||
| bin/hledger -f- print --empty | hledgerdev -f- print --empty | ||||||
| <<< | <<< | ||||||
| 2010/3/1 x | 2010/3/1 x | ||||||
|   a  $0.00 @ 3EUR |   a  $0.00 @ 3EUR | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user