summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-08-04 14:14:44 -0700
committerJohn Wiegley <johnw@newartisans.com>2015-08-04 14:14:44 -0700
commit00e4cdb008a21ded16efdac80a6249cfc316f71d (patch)
tree3505d81e4ff8366b0a8dc8c9d874248b2604dda9 /src/value.cc
parent1ef946a9b9b45698fd0fc603c196c58072fb735c (diff)
parent9a9d55499ea1a4ca5c2b9efe48d149b8cd2e01df (diff)
downloadfork-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.cc4
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: