summaryrefslogtreecommitdiff
path: root/tests/database.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-04-29 01:40:46 +0200
committerlouiz’ <louiz@louiz.org>2018-04-29 01:40:46 +0200
commit7592d966e684410f603942e34413375c8d98ac9e (patch)
tree7b3af3008c6a6532edbf4f4fe3534778886e669e /tests/database.cpp
parentefa63ee5cb4be3aebc1489dc9db936eea26660d4 (diff)
downloadbiboumi-7592d966e684410f603942e34413375c8d98ac9e.tar.gz
biboumi-7592d966e684410f603942e34413375c8d98ac9e.tar.bz2
biboumi-7592d966e684410f603942e34413375c8d98ac9e.tar.xz
biboumi-7592d966e684410f603942e34413375c8d98ac9e.zip
Missing fields in a data-form response are now interpreted as an empty value
Diffstat (limited to 'tests/database.cpp')
-rw-r--r--tests/database.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/database.cpp b/tests/database.cpp
index 15c117b..070a460 100644
--- a/tests/database.cpp
+++ b/tests/database.cpp
@@ -64,6 +64,10 @@ TEST_CASE("Database")
CHECK(o.col<Database::EncodingIn>() == "ISO-8859-1");
CHECK(o.col<Database::RecordHistoryOptional>().is_set == true);
CHECK(o.col<Database::RecordHistoryOptional>().value == false);
+
+ o.clear();
+ CHECK(o.col<Database::EncodingIn>() == "");
+ CHECK(o.col<Database::Owner>() == "zouzou@example.com");
}
SECTION("Channel options with server default")