Craig Earls
6eeefecf01
Merge commit 'f2ec5bdb19887b74b2672e6bdeee9799c0ea80a8'
2014-03-06 06:54:16 -07:00
Steve Purcell
f2ec5bdb19
Merge pull request #253 from ecraven/update-docs
...
Fixing typos in documentation
2014-03-05 14:00:48 +00:00
Peter Feigl
5d7a9b0504
Fixing typos in documentation
2014-03-05 14:49:00 +01:00
Craig Earls
c9663138dd
Merge pull request #252 from ecraven/update-docs
...
Added support for validation tests to DocTest.py (input:validate and command:validate)
2014-03-04 09:54:59 -07:00
Peter Feigl
a7034b68a1
Merge commit '4966c7f' into update-docs
2014-03-04 15:02:11 +01:00
Peter Feigl
4966c7f100
Fixing typos, adding @c input:validate to code examples
2014-03-04 15:01:23 +01:00
Peter Feigl
3e29a992e5
removing two new test cases that fail on travis. cannot reproduce failure
2014-03-04 11:12:31 +01:00
Peter Feigl
831c064c38
Added support for validation tests to DocTest.py (input:validate and
...
command:validate)
It is now possible to use @smallexample @c input:validate (and
command:validate) to specify that an example should just be read by
ledger (and checked for errors) or that a ledger command should be
executed (with default input -f sample.dat, if none is specified).
These annotations have been added into ledger3.texi where appropriate.
Running the ledger3.texi test now takes a second or two, but a lot of
the @smallexamples are now automatically tested.
2014-03-04 10:05:09 +01:00
Craig Earls
08f0735e1c
Merge pull request #251 from ecraven/update-docs
...
first changes in adding more testable examples to ledger3.texi
These look good. Could you put a brief explanation somewhere (not necessarily in ledger3.texi) on how to generate new tests? I should probably know where the command and input id numbers come from, but I don't.
2014-03-03 14:53:47 -07:00
Peter Feigl
479cdf4fe2
first changes in adding more testable examples to ledger3.texi
2014-03-03 22:36:06 +01:00
Craig Earls
37153f3acc
Merge pull request #250 from ecraven/update-manpage
...
Adding documentation of options to man-page from manual.
2014-02-27 06:26:20 -07:00
Peter Feigl
977af3d27c
Adding documentation of options to man-page from manual. Fixing a few minor typos and mistakes.
2014-02-27 10:24:38 +01:00
John Wiegley
bedae81934
Merge pull request #249 from ecraven/opt-no-aliases
...
Adding option --no-aliases to completely disable alias expansion
2014-02-26 17:27:56 -06:00
Peter Feigl
ecd5097d51
Adding option --no-aliases to completely disable alias expansion
2014-02-26 23:50:50 +01:00
John Wiegley
ee36a33a19
Merge pull request #248 from ecraven/fix-warnings
...
Fixing two GCC warnings
2014-02-26 16:26:41 -06:00
John Wiegley
eddd03ed09
Merge pull request #247 from ecraven/master
...
Adding support for recursive aliases.
2014-02-26 16:06:52 -06:00
Peter Feigl
7bcc5b7c2c
Fixing two GCC warnings
2014-02-26 12:29:57 +01:00
Peter Feigl
75b0a5d8ff
Adding option --recursive-aliases, adding documentation to man-page and manual
2014-02-26 09:29:31 +01:00
Peter Feigl
230fa31ba3
Adding tests for recursive aliases
2014-02-26 01:30:45 +01:00
Peter Feigl
2dabb914c0
fixing problem with previous commit if no aliases are registered
2014-02-26 01:16:03 +01:00
Peter Feigl
c80b495546
Adding support for recursive aliases.
...
Alias expansion is now a loop. If you define
alias A=B:A
alias B=C:B
then A will expand to C:B:A.
Also added a short section to the manual about this.
2014-02-25 22:50:20 +01:00
Craig Earls
0b4ce56986
Merge commit 'bc08eed3cb1bdb4f67d1b77273f3254d0cf13be2'
2014-02-24 14:17:57 -07:00
Craig Earls
bb8e000d5b
Make reconcile window refresh xact locations after a delete operation
2014-02-24 14:16:46 -07:00
Craig Earls
bc08eed3cb
Merge pull request #246 from lawilliams/master
...
Fixing typo: test sweet -> test suite
But I thought the new testing capability was so sweet I left it this way! Thanks!
2014-02-22 09:29:26 -07:00
Luke Williams
dacb5f9823
Fixing typo: test sweet -> test suite
2014-02-23 00:02:22 +10:00
John Wiegley
f3731a93db
Added to ignore file
2014-02-21 13:05:12 -06:00
John Wiegley
de8b078849
Attempt to convert balances to amounts before failing comparisons
2014-02-21 13:05:12 -06:00
Craig Earls
1ec9f71479
Merge pull request #245 from afh/pull/DocTests
...
Make more examples from documentation testable
2014-02-19 09:46:53 -07:00
Alexis Hildebrandt
3d9faef448
DocTests: Allow inline input to be used with different example commands
2014-02-19 06:52:43 +01:00
Alexis Hildebrandt
90988feebc
DocTests: Allow multiple example inputs
...
to be used as single ledger data for an example command
2014-02-19 06:52:43 +01:00
John Wiegley
be6f3cb269
Merge pull request #244 from mvz/logical-and-is-or
...
Implicit logical and is really a logical or
2014-02-17 14:02:58 -06:00
Matijs van Zuijlen
59fde5e777
Implicit logical and is really a logical or
2014-02-17 07:25:07 +01:00
John Wiegley
6a68119cbb
Merge pull request #243 from kanru/justify-cjk
...
Correctly justify Unicode characters in terminal
2014-02-16 23:02:02 -06:00
John Wiegley
fea32e94a6
Merge pull request #242 from afh/pull/year
...
Fix apply_year_directive
2014-02-16 23:01:19 -06:00
Kan-Ru Chen (陳侃如)
9c7e5a612c
Use mk_wcwidth instead mk_wcwidth_cjk
2014-02-13 19:19:40 +08:00
Kan-Ru Chen (陳侃如)
d5b5ea0213
Correctly justify Unicode characters in terminal
...
Many Unicode characters take more spaces than one ASCII character. For
example, Chinese characters are two characters wide when using monospace
font in terminal. This patch use wcwidth of Markus Kuhn to count the
correct width for justification.
2014-02-13 18:40:06 +08:00
Alexis Hildebrandt
e7cfaa1e65
Fix apply_year_directive
...
Using the Y 2014 syntax works fine, but using
apply year 2014 resulted in the following error:
Error: Year is out of valid range: 1400..10000
since part of the given year string was chopped off.
2014-02-12 10:38:07 +01:00
Craig Earls
c59aadaace
Merge pull request #241 from afh/pull/spelling
...
Correct minor spelling mistakes and improve spellcheck.sh
Awesome.
2014-02-09 11:32:44 -07:00
Craig Earls
050edd56ce
Merge pull request #240 from afh/pull/DocTests
...
Validate examples in the texinfo documentation when running tests.
2014-02-09 11:31:23 -07:00
Alexis Hildebrandt
a2f86c85df
Add explanation on how to validate documentation examples
...
by specially marking @smallexample, which will be used by DocTests.py
2014-02-09 07:54:27 +01:00
Alexis Hildebrandt
c566afe3b1
Add proper argument parsing to DocTests.py
2014-02-09 07:28:58 +01:00
Alexis Hildebrandt
960ebc2a57
Print summary list of failed doc tests if any
2014-02-09 07:20:03 +01:00
Alexis Hildebrandt
a1cc8ca15a
Add support to check documentation examples with inline data
2014-02-07 18:39:35 +01:00
Alexis Hildebrandt
c73ba9d075
Correct spelling mistakes
2014-02-07 00:23:22 +01:00
Alexis Hildebrandt
77a9317cf4
Make spellcheck.sh tool callable from anywhere
2014-02-07 00:23:08 +01:00
Alexis Hildebrandt
fbbb379fe0
Check examples in documentation when running tests
...
The DocTests.py script will parse a given texinfo file for specially
marked examples, run the ledger command from the example, and check
the result against the example output from the documentation.
2014-02-07 00:21:38 +01:00
Craig Earls
ffc8bf30f4
Merge pull request #239 from afh/pull/copyright
...
Bump copyright notice to 2014 in the documentation
Thanks.
2014-02-04 13:03:26 -08:00
Alexis Hildebrandt
df9771f7a9
Bump copyright notice to 2014 in the documentation
2014-02-04 21:58:03 +01:00
Craig Earls
1003c24103
Merge pull request #238 from mbork/master
...
Add option ledger-complete-ignore-case
Thanks! This works very well.
2014-02-04 06:15:36 -08:00
John Wiegley
0184255ca3
Merge pull request #237 from afh/pull/linux-rpath
...
Correctly set runtime path on Linux on install
2014-02-04 05:29:04 -08:00