thdox
991b3f25b1
Rename file from test/regress/634AA589.test to
...
test/baseline/opt-permissive.test. Actually 634AA589 is the initial
commit that created permissive option.
2015-01-22 02:00:40 +01:00
Alexis Hildebrandt
47dbddf5af
[tests] Capture stderr when running DocTests
2015-01-21 10:32:50 +01:00
Alexis Hildebrandt
ba46240921
[tests] Improve option parsing in CheckTexinfo.py
...
* Replace @ftable @code argument with @option of @command depending
on the documented items
* Remove @c option comment from @items documenting options
2015-01-21 08:03:53 +01:00
Alexis Hildebrandt
c7a30bf7d8
[tests] Refactor CheckTests.py into custom scripts
2015-01-21 08:03:53 +01:00
Alexis Hildebrandt
17189b8106
[fix] Make trim function trim trailing whitespace
...
std::isspace(*e) returns false for the end of c-string null-byte.
Bugzilla: 1106
2015-01-20 22:18:32 +01:00
Alexis Hildebrandt
f7fd65b9aa
Fix -i short-option for --init-file
...
Bugfix for #1102
Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-15 23:27:16 +01:00
Alexis Hildebrandt
01252035cd
[doc] Add CheckTests to ctest
...
to check whether all available ledger options documented
and are being tested.
Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-15 14:53:16 +01:00
Alexis Hildebrandt
ce903c1a5e
[tests] Fix compiler warning
2015-01-11 09:38:24 +01:00
John Wiegley
d4346ae6d8
Merge pull request #358 from afh/pull/DocTests
...
[tests] Add examples parameter to DocTests
2014-12-30 10:37:06 -06:00
Alexis Hildebrandt
abf41d727a
[tests] Add examples parameter to DocTests
...
to test the given examples only instead of every example.
2014-12-30 11:15:23 +01:00
Alexis Hildebrandt
ba35340ca9
Bugfix 1038: empty reg report for this month period
...
when year was specified with literal Y or year directive, but not
when using apply year.
2014-12-29 11:08:10 +01:00
Alexis Hildebrandt
1dd9dcaab4
Bump copyright notice to 2015
...
The following script makes it a no-brainer:
% NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \
| xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
2014-12-27 11:24:55 +01:00
John Wiegley
d88cf687d3
Merge pull request #346 from afh/pull/trace_level
...
Fix crash when using --trace 10 or above
2014-12-24 19:17:33 -06:00
Alexis Hildebrandt
4f1a5b5770
[test] Use --args-only option in DocTests.py
...
instead of --init-file /dev/null
2014-12-24 10:08:43 +01:00
Alexis Hildebrandt
f1478851ee
Fix crash when using --trace 10 or above
...
uint8_t is typedef'd to char, thus boost::lexical_cast treats it
as such instead of a number.
2014-12-23 23:45:39 +01:00
Alexis Hildebrandt
0a0f2f0d69
Fix crash when using -M with empty result
...
ledger -f /dev/null reg -M test causes a segmentation fault,
see bug 730 and duplicates 1080 and 1084 for details.
Kudos to Ikke for helping with debugging.
2014-12-16 19:37:37 +01:00
Martin Michlmayr
ad7c5ea764
Add test case for off by one error in textual.cc fixed in a013a73b
2014-12-11 16:41:20 -06:00
Alexis Hildebrandt
936c3f0434
Fix DocTests running in non-standard width terminal
...
The changes introduced with
56976a127c make --columns default to
terminal width, as returned by ioctl()
break the DocTests when run in a terminal with a width different
from the standard of 80 columns.
2014-12-03 22:14:49 +01:00
Alexis Hildebrandt
31ccb6d368
Fix and re-enable DocTests
2014-11-29 09:06:14 +01:00
Martin Michlmayr
96223f9e20
Add ISO 8601 date as recognized date string
...
Dates specified via --begin and --end are converted to a value expression
using an ISO 8601 (yyyy-mm-dd) date, but this date was not recognized by
ledger.
Bug fix for #1072
2014-10-02 18:33:26 -04:00
Martin Michlmayr
fbcb5e9093
Fix period expression parsing for month to month without year
...
Bug fix for #1074 , a regression introduced by the fix for bug #375
2014-10-02 17:31:26 -04:00
Johann Klähn
5931a93777
avoid policy warning with recent CMake versions
...
See `cmake --help-policy CMP0026` with CMake ≥ 3.0.
2014-09-10 00:40:36 +02:00
Johann Klähn
6323fe52b7
fix regression test
...
see pull request #320 / commit 4c86042665
2014-09-10 00:03:40 +02:00
tripun
9a9d55499e
fix minor issues
2014-08-18 23:28:18 +05:30
tripun
b2bd337c31
add additional tests for sequence_t and fix the old ones
2014-08-18 23:24:25 +05:30
tripun
04d541ed44
add test for sequenc_t in value_t
2014-08-18 22:13:11 +05:30
tripun
c87dd21912
add unit test Negation for value
2014-08-18 02:46:36 +05:30
tripun
f1c3f36e3b
minor additions
2014-08-18 02:45:56 +05:30
tripun
43511a58c1
add test for zero for value
2014-08-18 02:45:56 +05:30
tripun
e0f2e0ad29
check Type unit test for value
2014-08-18 01:27:04 +05:30
tripun
66d89d92f2
add Division unit test for value
2014-08-18 01:14:36 +05:30
tripun
3a87b94996
remove some statements until sequence multiplication run-time error is fixed
2014-08-18 00:48:49 +05:30
tripun
90f2ca8049
add Multiplication unit test for value
2014-08-18 00:44:50 +05:30
tripun
1834ba568a
add unit test subtraction for value
2014-08-18 00:17:14 +05:30
tripun
580cb42c81
add whitespaces
2014-08-17 22:55:09 +05:30
tripun
2eac1ef328
add unit test Addition for value
2014-08-17 22:53:30 +05:30
tripun
2e5520a5cf
add unit test of equality for value
2014-08-17 18:53:30 +05:30
tripun
6c7a951a2d
add assignment unit test for value
2014-08-17 16:30:14 +05:30
tripun
66478aa894
add constructors unit test for value
2014-08-17 16:20:30 +05:30
tripun
b8cb110720
initialize value fixture
2014-08-16 19:40:23 +05:30
tripun
53572549d3
add t_value unit test
2014-08-15 16:45:40 +05:30
John Wiegley
ce31029236
Merge pull request #316 from tripun/code_coverage
...
expand unit tests in t_balance.cc
2014-08-12 11:46:32 -05:00
tripun
8dbeb91493
Add --actual-dates tests
2014-08-12 11:18:45 +02:00
tripun
1b84d960a3
Add test for primary-date option
2014-08-12 11:18:30 +02:00
tripun
0e1ced72bd
Revert "add unit test printing for balance_t" until issue is fixed.
...
Getting different output on system than travis-ci.
This reverts commit 272e3cb3799937dcd3c379de56b299a3cbde52ca.
2014-08-11 21:01:26 +05:30
tripun
84b9ca73aa
add unit test printing for balance_t
2014-08-11 21:01:26 +05:30
tripun
3c04ea50ac
add unit test of Zero for balance_t
2014-08-11 21:01:26 +05:30
tripun
7e817d45d9
add unit test Truth for balance_t
2014-08-11 21:01:26 +05:30
tripun
c5f41b8519
add unit test Round for balance_t
2014-08-11 21:01:25 +05:30
tripun
3a35d16c28
add unit test Floor for balance_t
2014-08-11 21:01:25 +05:30