aboutsummaryrefslogtreecommitdiff
path: root/src/test/DBTest.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-18 14:01:11 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-18 14:01:11 +0100
commitefcb4e88c7b921684379adce2a3d09c8f9aaf3a3 (patch)
tree7ffc08549ddd6f20487304507a7474591f559cbb /src/test/DBTest.cpp
parenta444da0b35123a9e51cde1f5be9aab0204eb5b66 (diff)
parent0e800c6857122436e7a766c6934991aa1d8d31ff (diff)
Merge branch 'master' into loek/replay
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");
+}