aboutsummaryrefslogtreecommitdiff
path: root/src/test/DBTest.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 16:24:08 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 16:24:08 +0100
commitfa0d298afafdc81d00164765903161205cf09a7e (patch)
tree3796af3e4544d35b12cefe245b230c3c8ff9d93d /src/test/DBTest.cpp
parent876896e50711509e80ef551b4e8ad440e8039b97 (diff)
move DB fix from `loek/doxygen` to `loek/savemgr`
Diffstat (limited to 'src/test/DBTest.cpp')
-rw-r--r--src/test/DBTest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/DBTest.cpp b/src/test/DBTest.cpp
index 99dedff..0c98e10 100644
--- a/src/test/DBTest.cpp
+++ b/src/test/DBTest.cpp
@@ -27,3 +27,12 @@ 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");
+}
+