diff options
author | John Wiegley <johnw@newartisans.com> | 2015-08-04 14:14:44 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2015-08-04 14:14:44 -0700 |
commit | 00e4cdb008a21ded16efdac80a6249cfc316f71d (patch) | |
tree | 3505d81e4ff8366b0a8dc8c9d874248b2604dda9 /src/value.cc | |
parent | 1ef946a9b9b45698fd0fc603c196c58072fb735c (diff) | |
parent | 9a9d55499ea1a4ca5c2b9efe48d149b8cd2e01df (diff) | |
download | fork-ledger-00e4cdb008a21ded16efdac80a6249cfc316f71d.tar.gz fork-ledger-00e4cdb008a21ded16efdac80a6249cfc316f71d.tar.bz2 fork-ledger-00e4cdb008a21ded16efdac80a6249cfc316f71d.zip |
Merge pull request #317 from tripun/code_coverage
Add some unit tests for value_t
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc index 2737add9..4ea7c7a8 100644 --- a/src/value.cc +++ b/src/value.cc @@ -341,6 +341,10 @@ value_t& value_t::operator+=(const value_t& val) } switch (type()) { + case VOID: + *this = value_t(val); + return *this; + case DATETIME: switch (val.type()) { case INTEGER: |