Commit graph

86 commits

Author SHA1 Message Date
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
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
tripun
e94efddfb6 add unit test Ceiling for balance_t 2014-08-11 21:01:25 +05:30
tripun
264f8c553c add unit test Absolute for balance_t 2014-08-11 21:01:25 +05:30
tripun
c24fbd6dfb add unit test negation for balance_t 2014-08-11 21:01:25 +05:30
tripun
763c8c1162 add unit test for balance division 2014-08-11 21:01:25 +05:30
tripun
2db0bc9bf9 add test for multiplication 2014-08-11 21:01:25 +05:30
tripun
b9aef7b1ec edited subraction test 2014-08-11 21:01:24 +05:30
tripun
fe91656aa1 add Equality unit test for balance 2014-08-11 21:01:24 +05:30
tripun
57877bf062 added boost subtraction unit test 2014-08-11 21:01:24 +05:30
tripun
696440e735 added balance addition unit test 2014-08-11 21:01:24 +05:30
tripun
6f39d1169d add balance Test constructors 2014-08-11 21:01:24 +05:30
Martin Michlmayr
2cee0fe23f Cosmetic change - format code consistently
Add a space between if and the opening bracket, between a closing
round bracket and the following opening curly bracket, etc.
2014-05-18 09:51:32 -04:00
Johann Klähn
89c21e9967 build shared library/python module, clean up CMake
libledger will now be built as a shared library. You can 'import ledger'
from python IFF you copy libledger.so to ledger.so or create a symlink.
2014-02-01 01:30:53 +01:00
Johann Klähn
a633bc7fce add unit tests for amount_t→floor/ceil 2013-01-15 21:17:11 +01:00
John Wiegley
4681e58d7f Converted the Ledger build system to use CMake 2012-05-20 04:48:05 -05:00
John Wiegley
363670d35b Tighten up argument passing related to fn_market() 2012-03-11 03:55:25 -05:00
John Wiegley
8ae2fb8721 Add support for valuation expressions on commodities 2012-03-05 23:01:41 -06:00
John Wiegley
8d6bf11334 All tests are working again but one 2012-03-05 05:03:52 -06:00
John Wiegley
c313cee085 Fixed several unit tests 2011-02-04 04:40:31 -05:00
John Wiegley
2a2c3c1cec Use Boost.Test instead of CppUnit 2011-02-04 03:43:33 -05:00
John Wiegley
7995e16762 Corrected a bug in report query parsing 2010-06-19 14:02:44 -04:00
John Wiegley
dea2aed0b5 Untabified all source files 2010-06-11 17:02:25 -04:00
John Wiegley
be6cef93c4 A further simplification of -V and -X
With -X COMM, all values are computed in terms of COMM, regardless.

With -V, only secondary commodities will ever be computed, never
primaries.  Further, if a secondary commodities has an associated price,
the valuation is done in terms of that price's commodity.
2010-06-07 09:49:17 -04:00
John Wiegley
5cdd36f358 Further improved parsing of query expressions
Fixes #210 / D4C2DD6F-8967-4FFC-BBBC-A941F9C53475
2010-06-01 18:33:13 -04:00
John Wiegley
038c24357e Changed --european option to --decimal-comma
Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
2010-06-01 17:56:41 -04:00
John Wiegley
b2c426abae Fixed one of the ExprTests 2009-11-15 22:13:53 -05:00
John Wiegley
c3535d06c8 Redesigned the expr_t, predicate_t, query_t classes 2009-11-09 02:06:06 -05:00