aboutsummaryrefslogtreecommitdiff
path: root/src/test/DBTest.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 16:25:50 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 16:25:50 +0100
commit562dc32340cfe6963f53c187f2ffed1f04da003c (patch)
tree9b440a10bd26425fb18cbafb1432b5cc95ea5936 /src/test/DBTest.cpp
parentb41d5f01c7b155c8b84baaea1cf57b4a38e99dfe (diff)
parent154ed5353ef18eb46cc31744e8bf1bc54afd5acc (diff)
Merge branch 'loek/savemgr' into demo
Diffstat (limited to 'src/test/DBTest.cpp')
-rw-r--r--src/test/DBTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/DBTest.cpp b/src/test/DBTest.cpp
index 99dedff..7f2c339 100644
--- a/src/test/DBTest.cpp
+++ b/src/test/DBTest.cpp
@@ -27,3 +27,11 @@ TEST_F(DBTest, Has) {
db.set("foo", "bar");
EXPECT_EQ(db.has("foo"), true);
}
+
+TEST_F(DBTest, MultipleKeys) {
+ db.set("foo", "foo");
+ db.set("bar", "bar");
+
+ EXPECT_EQ(db.get("foo"), "foo");
+ EXPECT_EQ(db.get("bar"), "bar");
+}